#311827 Hex Color

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

Hex color #311827 graphic
The hex code #311827 is a dim, inky magenta with a matte, dusty finish. Because it is so dark, this shade excels as a moody background for digital interfaces. White text is highly readable against this deep tone, achieving a strong 16.3:1 contrast ratio. Pair it with muted, lighter grays or soft blush tones to prevent your design from feeling overly somber or flat.

Questions about #311827

What is #311827 in RGB, HSL and CMYK?
In RGB, #311827 is rgb(49, 24, 39), in HSL hsl(324, 34%, 14%) and in CMYK 0%, 51%, 20%, 81%. Browse more shades of purple with names and hex codes.
How should I use #311827 in digital design?
#311827 works best as a moody, sophisticated background color because it provides high contrast for white typography. Its dark, matte quality prevents digital interfaces from looking flat while maintaining a professional and serious tone for branding or editorial layouts.
Which colors pair well with #311827?
To keep #311827 from feeling overly somber, pair it with muted blush tones or light, neutral grays. These softer accents lift the darkness of the magenta base, creating a balanced and harmonious palette suitable for elegant or wellness-focused design work.
Is #311827 readable on white or black?
#311827 has a 16.27:1 contrast ratio on white and 1.29: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.