#05040F Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

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?
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.