#1B1F38 Hex Color

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

Hex color #1b1f38 graphic
This dark, desaturated indigo acts as a grounding anchor for sophisticated, moody designs. Because #1b1f38 is so close to black, it reads cleaner than standard navy when paired with warm, light accents. Use the hex code #1b1f38 for UI backgrounds, where it offers excellent contrast for white text to remain perfectly legible even in small, complex layouts.

Questions about #1b1f38

What is #1b1f38 in RGB, HSL and CMYK?
In RGB, #1b1f38 is rgb(27, 31, 56), in HSL hsl(232, 35%, 16%) and in CMYK 52%, 45%, 0%, 78%. Browse more shades of purple with names and hex codes.
Why is #1b1f38 better than black for UI design?
#1b1f38 offers a softer, more sophisticated look than pure black, reducing eye strain while maintaining high contrast. By using this deep indigo for backgrounds, you create a depth that feels intentional, modern, and far less harsh on the viewer's eyes.
Which colors pair best with #1b1f38?
To balance the coolness of #1b1f38, pair it with warm, desaturated neutrals like cream or beige for text and accents. You can also introduce soft, muted gold or terracotta tones to create a refined, high-contrast aesthetic that feels professional and calm.
Is #1b1f38 readable on white or black?
#1b1f38 has a 16.15: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.