#0C1F34 Hex Color

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

Hex color #0c1f34 graphic
This extremely dark, desaturated blue carries a serious, almost gloomy weight. Because it is so near-black, #0c1f34 serves best as a dominant base for tech or security-focused UI designs. It provides excellent accessibility for white body text with a 16.7:1 contrast ratio. Pair it with soft, muted accent colors to avoid high-contrast harshness, as its dusty undertones look washed out next to pure, bright whites.

Questions about #0c1f34

What is #0c1f34 in RGB, HSL and CMYK?
In RGB, #0c1f34 is rgb(12, 31, 52), in HSL hsl(212, 63%, 13%) and in CMYK 77%, 40%, 0%, 80%.
Why does #0c1f34 look washed out when placed next to pure white?
Because #0c1f34 contains significant dusty undertones, placing it directly next to stark, pure white creates a visual imbalance that makes the blue appear faded or hazy. Instead, try pairing it with an off-white or soft cream to create a more harmonious, intentional look.
Is #0c1f34 readable on white or black?
#0c1f34 has a 16.65:1 contrast ratio on white and 1.26: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.