Petrol color: hex codes, shades and palettes
Palettes built around petrol. Click any swatch to copy its hex code.
A very deep blue-green. Dark enough to substitute for black in a scheme that wants to stay cool, and common in interiors for exactly that reason.
No petrol palettes yet
Run npm run generate to build the dataset.
Petrol hex, RGB, HSL and OKLCH
- HEX
#07434F- RGB
rgb(7, 67, 79)- HSL
hsl(190, 84%, 17%)- OKLCH
oklch(35.4% 0.059 215.5)- On white
- 10.91:1
- On black
- 1.92:1
Shades of petrol
Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Contrast and readability
Petrol on white measures 10.91:1 and on black 1.92:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.18:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
Related colors:seafoam. See every shade on the colors index.