#2F2F27 Hex Color

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

Hex color #2f2f27 graphic
#2f2f27 is an incredibly dark, desaturated olive with significant grey undertones. Because it sits so low in lightness, it functions best as a moody, sophisticated background rather than an accent. This hex code offers excellent contrast for white text, making it a functional choice for dark mode UI. Pair it with soft cream or muted ochre to prevent the palette from feeling too stark.

Questions about #2f2f27

What is #2f2f27 in RGB, HSL and CMYK?
In RGB, #2f2f27 is rgb(47, 47, 39), in HSL hsl(60, 9%, 17%) and in CMYK 0%, 0%, 17%, 82%. Browse more shades of black with names and hex codes.
What colors pair best with #2f2f27?
This deep, desaturated olive works beautifully with cream or warm ochre to soften its harshness. These lighter, earth-toned neutrals prevent the palette from feeling too stark while maintaining a sophisticated, modern contrast that balances the dark grey undertones found in #2f2f27.
Is #2f2f27 suitable for text in dark mode?
While #2f2f27 is too dark to serve as a foreground text color, it excels as a background for high-contrast white text. Its low lightness level provides excellent readability for interface elements, functioning effectively as a softer alternative to pure black or charcoal.
Is #2f2f27 readable on white or black?
#2f2f27 has a 13.48:1 contrast ratio on white and 1.55: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.