#1E1F23 Hex Color

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

Hex color #1e1f23 graphic
This near-black shade carries a serious, neutral weight, making it a reliable choice for dark mode UI backgrounds. Because #1e1f23 offers a high 16.5:1 contrast ratio against white, it keeps body text perfectly readable while avoiding the harshness of pure black. Use this hex code as a base for moody, professional designs that require stability without the visual distraction of brighter colors.

Questions about #1e1f23

What is #1e1f23 in RGB, HSL and CMYK?
In RGB, #1e1f23 is rgb(30, 31, 35), in HSL hsl(228, 8%, 13%) and in CMYK 14%, 11%, 0%, 86%.
Why use #1e1f23 instead of pure black for dark mode interfaces?
Using #1e1f23 instead of absolute black creates a more sophisticated, less jarring visual experience for users. Pure black can cause eye strain due to extreme contrast, whereas this near-black maintains legibility while feeling grounded, professional, and significantly softer on screens.
What colors pair well with #1e1f23 in professional web design?
Because #1e1f23 is a neutral near-black, it serves as an excellent anchor for almost any palette. It looks particularly effective when paired with muted blues or soft cool grays, creating a balanced, contemporary aesthetic that feels stable and inherently readable.
Is #1e1f23 readable on white or black?
#1e1f23 has a 16.46:1 contrast ratio on white and 1.27: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.