#1F152B Hex Color

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

Hex color #1f152b graphic
#1f152b is an incredibly dark, inky violet that functions as a sophisticated near-black. Because of its extremely low lightness, it provides a strong, high-contrast base for white typography. Designers use this shade to establish mood in premium branding or dark UI interfaces. It looks particularly refined when paired with muted metallics or soft, desaturated creams instead of pure white.

Questions about #1f152b

What is #1f152b in RGB, HSL and CMYK?
In RGB, #1f152b is rgb(31, 21, 43), in HSL hsl(267, 34%, 13%) and in CMYK 28%, 51%, 0%, 83%. Browse more shades of purple with names and hex codes.
Why use #1f152b instead of standard black for a dark background?
Using #1f152b creates a more nuanced, premium depth that feels softer on the eyes than pure black. This inky violet provides the same high-contrast base for white text while adding a subtle, sophisticated warmth that feels more intentional in modern digital design.
Which colors work best alongside #1f152b for a cohesive palette?
This color pairs beautifully with muted metallics like champagne or soft, desaturated creams rather than stark white. These tones emphasize its purple undertones without overpowering the deep, near-black saturation, keeping the interface feeling balanced, luxurious, and highly readable.
Is #1f152b readable on white or black?
#1f152b has a 17.49:1 contrast ratio on white and 1.20: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.