#040708 Hex Color

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

Hex color #040708 graphic
As a near-black shade, #040708 carries a somber, ashy weight that makes it more approachable than pure black. This hex code works best as a primary background for UI interfaces or high-end branding where stark black feels too aggressive. Pair it with soft cream or muted gold to maintain elegance without losing legibility, as the high contrast ensures text remains sharp and readable.

Questions about #040708

What is #040708 in RGB, HSL and CMYK?
In RGB, #040708 is rgb(4, 7, 8), in HSL hsl(195, 33%, 2%) and in CMYK 50%, 12%, 0%, 97%.
Is #040708 suitable for text-heavy UI designs?
#040708 functions as an excellent, softer alternative to pure black for body text and interface backgrounds. It reduces eye strain during prolonged screen time while maintaining high contrast against light surfaces, ensuring your typography remains crisp and professional.
What colors pair well with #040708?
#040708 pairs beautifully with cream or muted gold to create a high-end, sophisticated aesthetic. Using softer, warmer neutrals prevents the stark, aggressive feel that pure black can create, allowing your design to appear balanced, approachable, and intentionally styled.
Is #040708 readable on white or black?
#040708 has a 20.21:1 contrast ratio on white and 1.03: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.