#040407 Hex Color
An intensely somber and dusty near-black

#040407 is a near-black shade that feels somber, dusty, and incredibly dim. Because it is so dark, this hex code serves as a solid base for premium branding or moody UI interfaces. While it offers excellent contrast for white text at a 20.5:1 ratio, use it sparingly as a full background to avoid a muddy appearance. Pair it with metallic gold or silver for maximum impact.
Questions about #040407
What is #040407 in RGB, HSL and CMYK?
In RGB, #040407 is rgb(4, 4, 7), in HSL hsl(240, 27%, 2%) and in CMYK 43%, 43%, 0%, 97%.
What pairings work best with #040407?
This near-black shade pairs exceptionally well with metallic tones like gold or silver to create a premium, luxury aesthetic. It also serves as a strong, high-contrast foundation for white text, ensuring your typography remains crisp and accessible in dark-themed interface designs.
Is #040407 suitable for a full background?
While #040407 provides a sophisticated look, using it as a full-screen background can sometimes appear muddy or overwhelming. It is often more effective to use this color for specific UI components, footer sections, or deep-toned accents to maintain depth without sacrificing visual clarity.
Is #040407 readable on white or black?
#040407 has a 20.47:1 contrast ratio on white and 1.02: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.