#1F242F Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This dim, inky blue is nearly grey, offering a serious and muted alternative to standard black backgrounds. Because it is highly readable against white text, the hex code #1f242f works best as a primary UI base for dark mode interfaces. Pair it with soft, muted oranges or warm gold accents to cut through its bleak character and add visual interest to corporate or technical designs.
Questions about #1f242f
What is #1f242f in RGB, HSL and CMYK?
In RGB, #1f242f is rgb(31, 36, 47), in HSL hsl(221, 21%, 15%) and in CMYK 34%, 23%, 0%, 82%. Browse more shades of black with names and hex codes.
How does #1f242f perform in UI design compared to pure black?
#1f242f provides a softer, more sophisticated look than harsh black backgrounds because its slight blue undertone prevents eye strain during extended reading. It creates a professional, grounded atmosphere that remains highly legible against crisp white typography or light, neutral accent colors.
Is #1f242f readable on white or black?
#1f242f has a 15.53:1 contrast ratio on white and 1.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.