#402D5C

Color Details

HEX
#402D5C
RGB
rgb(64, 45, 92)
HSL
hsl(264, 34%, 27%)
CMYK
cmyk(30%, 51%, 0%, 64%)
Best text on this color #FFFFFF (CR 12.01:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #402D5C swatch

Embed this swatch

Use this HTML on your site (free with a link):

Open image

About #402D5C

#402D5C converts to RGB(64, 45, 92) and HSL(264, 34%, 27%). 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).

#402D5C FAQs

What is the RGB value of #402D5C?
RGB: 64, 45, 92. Copy as CSS: rgb(64, 45, 92)
Is #402D5C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #402D5C?
Complement: #4a5c2d.
Does #402D5C have good contrast on white or black?
On white: 12.01:1 (AAA (normal text)). On black: 1.75:1 (Fails AA).