#400197 Hex Color

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

Hex color #400197 graphic
Darker than a blackberry and richer than midnight blue, this deep purple sits at the violet end of the spectrum. The hex code #400197 has a cold, inky cast that suits dominant bases in dark mode UI, moody branding, and gaming layouts. White text clears WCAG AA at about 12.6:1 contrast. Pair it with warm amber to keep large areas from reading flat.

Questions about #400197

What is #400197 in RGB, HSL and CMYK?
In RGB, #400197 is rgb(64, 1, 151), in HSL hsl(265, 99%, 30%) and in CMYK 58%, 99%, 0%, 41%. Browse more shades of purple with names and hex codes.
What colors pair well with #400197?
Warm amber, muted gold, and soft peach lift #400197 out of its gloom and give it a luxurious cast. Cool grays also pair well but can flatten it, so warm accents suit dark layouts best.
Is #400197 readable on white or black?
#400197 has a 12.58:1 contrast ratio on white and 1.66: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.