#1F2023 Hex Color

A soft near-black with cool undertones

Hex color #1f2023 graphic
#1f2023 is a deep charcoal grey that sits just above pure black. This tone acts as an ideal base for dark mode interfaces and moody typography. The hex code is #1f2023. Because it achieves a 16.3:1 contrast ratio against white text, designers can rely on this neutral for high-readability body copy without the harshness of a true black background.

Questions about #1f2023

What is #1f2023 in RGB, HSL and CMYK?
In RGB, #1f2023 is rgb(31, 32, 35), in HSL hsl(225, 6%, 13%) and in CMYK 11%, 9%, 0%, 86%.
Why use #1f2023 instead of pure black?
Using #1f2023 creates a more natural, balanced aesthetic for screen-based reading by reducing the high-contrast fatigue often caused by pure black. This deep charcoal allows for better visual depth while maintaining the clean, professional look essential for modern dark mode UI layouts.
What colors pair well with #1f2023?
Because #1f2023 is a neutral, near-black, it anchors vibrant tones exceptionally well. Try pairing it with muted sage or soft terracotta for an earthy, sophisticated palette that feels grounded but not overly clinical or stark.
Is #1f2023 readable on white or black?
#1f2023 has a 16.28:1 contrast ratio on white and 1.28: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.