#1F004C Hex Color

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

Hex color #1f004c graphic
Far from a bright violet, #1f004c is a near-black purple with a cold, inky cast. Its low lightness makes it a strong base for dark mode UI and moody branding, where it reads richer than plain black. Pair it with warm golds or dusty mauve to keep it from going flat. White text hits about 18.1:1 contrast on it, well past WCAG AA.

Questions about #1f004c

What is #1f004c in RGB, HSL and CMYK?
In RGB, #1f004c is rgb(31, 0, 76), in HSL hsl(264, 100%, 15%) and in CMYK 59%, 100%, 0%, 70%.
What colors pair well with #1f004c?
Warm metallic gold and dusty mauve bring out its violet undertone, while amber accents keep it from going flat. Avoid other dark blues, where it loses definition.
Is #1f004c readable on white or black?
#1f004c has a 18.06:1 contrast ratio on white and 1.16: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.