#403F9E Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This dark, cool indigo carries a sense of mystery and serious intent. Use the hex code #403f9e as a reliable base for dark mode interfaces to avoid the harshness of pure black. White text remains highly readable on this shade, making it a functional choice for text-heavy layouts. It pairs well with soft cream accents to introduce a touch of warmth and luxury.
Questions about #403f9e
What is #403f9e in RGB, HSL and CMYK?
In RGB, #403f9e is rgb(64, 63, 158), in HSL hsl(241, 43%, 43%) and in CMYK 59%, 60%, 0%, 38%.
Is #403f9e a good choice for dark mode UI?
Yes, #403f9e functions as a sophisticated, softer alternative to pure black for website backgrounds. It maintains excellent contrast for white text while reducing the harsh eye strain often associated with solid black interfaces, creating a more premium, modern feel for your layout.
What accent colors work best with #403f9e?
Is #403f9e readable on white or black?
#403f9e has a 8.66:1 contrast ratio on white and 2.42: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.