#2A064C
Color Details
HEX
#2A064C
RGB
rgb(42, 6, 76)
HSL
hsl(271, 85%, 16%)
CMYK
cmyk(45%, 92%, 0%, 70%)
Best text on this color
#FFFFFF (CR 17.09:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #2A064C
#2A064C converts to RGB(42, 6, 76) and HSL(271, 85%, 16%). This page provides quick readability checks, related hues (complementary and analogous), and ready-made palettes so you can drop the color into UI components, images, or CSS immediately.
Tip: Use the “Best text” chip above as a safe default foreground on this color (chosen by contrast ratio).
#2A064C FAQs
What is the RGB value of #2A064C?
RGB: 42, 6, 76. Copy as CSS:
rgb(42, 6, 76)
Is #2A064C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #2A064C?
Complement: #284b06.
Does #2A064C have good contrast on white or black?
On white: 17.09:1 (AAA (normal text)).
On black: 1.23:1 (Fails AA).