#1F2937 Hex Color

A serious, ink-toned charcoal gray

Hex color #1f2937 graphic
This ink-toned shade sits on the border of grey and blue, offering a serious, matte finish that anchors moody designs. Because it is highly desaturated, #1f2937 works best as a background base rather than an accent. It pairs cleanly with white text, providing excellent contrast for UI elements. Use this hex code when you need to project professional stability without the harshness of pure black.

Questions about #1f2937

What is #1f2937 in RGB, HSL and CMYK?
In RGB, #1f2937 is rgb(31, 41, 55), in HSL hsl(215, 28%, 17%) and in CMYK 44%, 25%, 0%, 78%.
Why does #1f2937 work better than pure black for UI backgrounds?
Using #1f2937 creates a softer, more modern aesthetic that reduces eye strain compared to the harsh contrast of pure black. It provides professional depth and stability, making it an ideal anchor for white or light-toned UI elements in digital interfaces.
What colors pair well with #1f2937 in a palette?
Because of its neutral, ink-like quality, #1f2937 pairs best with high-contrast neutrals like white or soft, muted creams. To add a modern accent, incorporate cool tones like teal or dusty blue for a balanced, sophisticated design composition.
Is #1f2937 readable on white or black?
#1f2937 has a 14.67:1 contrast ratio on white and 1.43: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.