#05040F Hex Color

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

Hex color #05040f graphic
This nearly black shade is somber and inky, with faint ashy undertones that prevent it from feeling like a pure, flat black. As a background, the hex code #05040f provides extreme contrast for white typography, ensuring perfect legibility. Use it as a dominant base for high-end, moody digital interfaces where you want a sleek, authoritative presence that feels more sophisticated than standard pitch black.

Questions about #05040f

What is #05040f in RGB, HSL and CMYK?
In RGB, #05040f is rgb(5, 4, 15), in HSL hsl(245, 58%, 4%) and in CMYK 67%, 73%, 0%, 94%.
When should I use #05040f instead of pure black?
Use #05040f whenever you want a high-contrast background that feels less harsh and more organic than a digital #000000 black. The faint ashy undertones provide a subtle depth that keeps text from vibrating against the screen while maintaining excellent legibility.
What color palettes work best with #05040f?
This nearly black shade pairs exceptionally well with muted, cool-toned metallics or soft, desaturated neutrals like slate and pewter. Because it is so dark, you can also use it to anchor high-contrast designs featuring stark white typography or vibrant, neon-accented UI elements.
Is #05040f readable on white or black?
#05040f has a 20.37: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.