#331FDB Hex Color

Dark indigo with a moody edge

Hex color #331fdb graphic
Like midnight denim with a purple cast, #331fdb is a dark indigo that reads moody and cold. Its depth makes it a strong base for dark mode interfaces or night sky scenes, and white text clears WCAG AA at about 8.9:1 contrast. Pair it with warm amber or burnt orange accents to keep the gloom from going flat.

Questions about #331fdb

What is #331fdb in RGB, HSL and CMYK?
In RGB, #331fdb is rgb(51, 31, 219), in HSL hsl(246, 75%, 49%) and in CMYK 77%, 86%, 0%, 14%. Browse more shades of blue with names and hex codes.
What colors pair well with #331fdb in a palette?
Warm accents like amber, burnt orange, or terracotta keep #331fdb from reading flat against dark backgrounds. For a tighter palette, muted lavender or steel gray work as supporting tones.
Is #331fdb readable on white or black?
#331fdb has a 8.89:1 contrast ratio on white and 2.35: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.