#40407F Hex Color

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

Hex color #40407f graphic
This muted indigo carries a dusty, desaturated quality that feels grounded and serious. It serves as an effective background for dark UI designs, where white text maintains excellent legibility due to a 9.3:1 contrast ratio. Because it leans cool and shadowy, #40407f pairs better with soft creams than stark whites to prevent the design from feeling too clinical. The hex code for this color is #40407f.

Questions about #40407f

What is #40407f in RGB, HSL and CMYK?
In RGB, #40407f is rgb(64, 64, 127), in HSL hsl(240, 33%, 37%) and in CMYK 50%, 50%, 0%, 50%. Browse more shades of purple with names and hex codes.
Does #40407f work well with light text in interface design?
Yes, #40407f offers a 9.3:1 contrast ratio against white text, which significantly exceeds accessibility standards. This makes it an ideal choice for dark-themed UI components or sidebar backgrounds where readability is the top priority.
Which color pairings soften the mood of #40407f?
Because #40407f is a cool, shadowy tone, pairing it with cream or warm off-white tones prevents the design from feeling too clinical. These softer neutrals bridge the gap between the serious indigo and your content.
Is #40407f readable on white or black?
#40407f has a 9.30:1 contrast ratio on white and 2.25: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.