#020C1B Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This nearly black shade of blue carries a heavy, somber weight. Designers often choose #020c1b for moody backgrounds or professional interfaces where trust and security are the main goals. Its dark, dusty appearance provides strong contrast for light text in technology and finance applications. The hex code for this serious, shadowy blue is #020c1b.
Questions about #020c1b
What is #020c1b in RGB, HSL and CMYK?
In RGB, #020c1b is rgb(2, 12, 27), in HSL hsl(216, 86%, 6%) and in CMYK 93%, 56%, 0%, 89%.
When should I use #020c1b in a design interface?
This deep shade works best as a primary background color for modern, high-tech, or security-focused applications. Because it sits very close to black, it provides a sophisticated alternative to pure black while maintaining excellent legibility for high-contrast white text.
How does #020c1b behave compared to pure black?
While pure black can feel harsh or static, this midnight blue carries a subtle cool undertone that feels more natural and less aggressive. It anchors your design without the visual flatness often associated with standard black backgrounds in digital interfaces.
Is #020c1b readable on white or black?
#020c1b has a 19.60:1 contrast ratio on white and 1.07: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.