#402B9C
Color Details
HEX
#402B9C
RGB
rgb(64, 43, 156)
HSL
hsl(251, 57%, 39%)
CMYK
cmyk(59%, 72%, 0%, 39%)
Best text on this color
#FFFFFF (CR 10.28:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #402B9C
#402B9C converts to RGB(64, 43, 156) and HSL(251, 57%, 39%). 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).
#402B9C FAQs
What is the RGB value of #402B9C?
RGB: 64, 43, 156. Copy as CSS:
rgb(64, 43, 156)
Is #402B9C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #402B9C?
Complement: #879c2b.
Does #402B9C have good contrast on white or black?
On white: 10.28:1 (AAA (normal text)).
On black: 2.04:1 (Fails AA).