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

Dark purple is a near-black violet that designers reach for when a dark mode interface needs more character than plain charcoal. The hex code #31004a is dim and cool, with a blue-leaning undertone that keeps it from reading muddy. White text measures about 17.1:1 contrast on it, so small body copy stays readable. Pair it with muted gold for luxury work.
Questions about #31004a
What is #31004a in RGB, HSL and CMYK?
In RGB, #31004a is rgb(49, 0, 74), in HSL hsl(280, 100%, 15%) and in CMYK 34%, 100%, 0%, 71%.
What colors pair well with #31004a?
Muted gold and warm amber give #31004a a rich, regal feel, while dusty pink or soft mauve keep it calmer. Skip bright greens, they clash with its cool blue-leaning undertone.
Is #31004a readable on white or black?
#31004a has a 17.08:1 contrast ratio on white and 1.22: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.