#402E57 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #402e57 graphic
This dark, unsaturated violet functions best as a sophisticated background for dark mode interfaces. Because #402e57 feels dusty and matte, it lacks the punch of bright purples, making it ideal for professional or mysterious brand palettes. Pair this hex code with a soft cream or muted gold to prevent the design from feeling too bleak or heavy.

Questions about #402e57

What is #402e57 in RGB, HSL and CMYK?
In RGB, #402e57 is rgb(64, 46, 87), in HSL hsl(266, 31%, 26%) and in CMYK 26%, 47%, 0%, 66%. Browse more shades of purple with names and hex codes.
What colors pair best with #402e57?
This deep violet works exceptionally well with soft creams and muted golds, which balance its inherent dustiness. Using a cream or pale gold keeps the design from feeling overly heavy or bleak while maintaining a high-end, professional aesthetic.
Is #402e57 suitable for text on dark mode backgrounds?
While #402e57 is ideal for UI backgrounds, it is too dark for legible text against most dark surfaces. It works best when paired with high-contrast, light-colored typography to ensure readability and accessibility for all users.
Is #402e57 readable on white or black?
#402e57 has a 12.02:1 contrast ratio on white and 1.74:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.