#40235E Hex Color

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

Hex color #40235e graphic
Not a bright violet, #40235e is a dim, unsaturated purple with a cool, gloomy cast. Its low lightness makes it a strong dominant base for dark mode UI and moody branding, where white text reaches about 13:1 contrast. Pair it with muted gold or dusty rose; next to plain white it can read flat.

Questions about #40235e

What is #40235e in RGB, HSL and CMYK?
In RGB, #40235e is rgb(64, 35, 94), in HSL hsl(269, 46%, 25%) and in CMYK 32%, 63%, 0%, 63%.
What colors pair well with #40235e?
Muted gold, dusty rose, and warm terracotta all flatter this dark purple without competing with it. Avoid bright greens, which clash with its cool, dim undertone. Cool grays also work but can make it feel colder.
Is #40235e readable on white or black?
#40235e has a 12.96:1 contrast ratio on white and 1.62: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.