#21211D Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

Petroleum is a near-black, ashy grey that offers a more grounded alternative to standard pure black. Because it carries such a heavy, moody weight, it works best as a primary background for high-contrast interfaces. White text pops easily against this shade, ensuring excellent readability. The hex code for this neutral tone is #21211d, a practical choice when you need stability in minimal web designs.
Questions about Petroleum
What is the hex code for Petroleum?
Petroleum is #21211d. In RGB that is rgb(33, 33, 29), in HSL hsl(60, 6%, 12%) and in CMYK 0%, 0%, 12%, 87%. Browse more shades of black with names and hex codes.
Why use Petroleum #21211d instead of standard pure black?
#21211d offers a softer, more organic aesthetic that reduces eye strain while maintaining the stark contrast required for modern interfaces. Pure black often feels harsh on screens, whereas this ashy, desaturated tone provides a more grounded and professional visual stability.
What color combinations work best with #21211d?
Because #21211d functions as a neutral foundation, it pairs exceptionally well with muted sage or soft terracotta to add warmth without overwhelming the design. For a strictly modern look, try pairing it with crisp off-white or light slate accents.
Is Petroleum readable on white or black?
Petroleum has a 16.15:1 contrast ratio on white and 1.29: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.