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

Dark and highly saturated, #400171 is a cool violet-purple with a nearly black blue undertone. Its serious, mysterious character suits moody branding, spiritual themes, gaming interfaces, and luxury packaging. Use the hex code as a dominant background with white text, which reaches about 14.4:1 contrast, or pair it with soft lilac and warm gold for emphasis.
Questions about #400171
What is #400171 in RGB, HSL and CMYK?
In RGB, #400171 is rgb(64, 1, 113), in HSL hsl(274, 98%, 22%) and in CMYK 43%, 99%, 0%, 56%.
What colors pair well with #400171?
#400171 pairs well with soft lilac for a tonal palette, warm gold for contrast, and white for clean readability. These combinations balance its dark, cool violet base without losing its mysterious, premium character.
Does #400171 read as warm or cool?
#400171 reads as a cool color because its violet base carries a strong blue, nearly black undertone. It works especially well for moody branding, gaming interfaces, spiritual themes, and luxury packaging.
Is #400171 readable on white or black?
#400171 has a 14.37:1 contrast ratio on white and 1.46: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.