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.
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
9 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.
Petrol color values
| RGB | 7 | 67 | 79 | |
|---|---|---|---|---|
| HSL | 190° | 84% | 17% | |
| HSV | 190° | 91% | 31% | |
| CMYK | 0.91 | 0.15 | 0.00 | 0.69 |
| XYZ | 3.5054 | 4.6235 | 8.1033 | |
| Yxy | 4.6235 | 0.2160 | 0.2848 | |
| CIE-Lab | 25.6341 | -13.0249 | -12.3430 | |
| Hunter Lab | 21.5024 | -8.5292 | -7.2920 | |
| OKLCH | 35.4% | 0.059 | 215.5° |
#07434F is 7 red, 67 green and 79 blue. Its blue channel carries the most of it. The nearest of the 216 web safe colors is #003366.
CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.
| Base | Red | Green | Blue |
|---|---|---|---|
| Binary | 00000111 | 01000011 | 01001111 |
| Octal | 7 | 103 | 117 |
| Decimal | 7 | 67 | 79 |
| Hex | 07 | 43 | 4F |
#07434f mixed with black
Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.
- #07434F
- #063C47
- #05353F
- #042E37
- #04282F
- #032127
- #021A1F
- #021417
- #010D0F
- #000607
- #000000
#07434f mixed with white
The tint ramp, by the same rule in the other direction.
- #07434F
- #1F5560
- #386872
- #517B83
- #6A8E95
- #83A1A7
- #9BB3B8
- #B4C6CA
- #CDD9DB
- #E6ECED
- #FFFFFF
Channel shares
Color schemes
Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.
Complementary
- #07434F
- #563025
Triadic
- #07434F
- #4F2F48
- #453B12
Analogous
- #07434F
- #1F3E59
- #064540
Monochromatic
- #000102
- #000609
- #00222A
- #07434F
- #306471
- #538895
- #77ADBA
#07434f on black and on white
The quick brown fox jumps over the lazy dog. 1.92:1
The quick brown fox jumps over the lazy dog. 10.91:1
Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.
CSS for #07434f
color: #07434f;
background-color: #07434f;
border: 3px solid #07434f;
box-shadow: 1px 1px 3px 2px #07434f;
text-shadow: 4px 4px 2px rgba(7, 67, 79, 0.8);
/* Perceptually even, and what a modern stylesheet wants */
color: oklch(35.4% 0.059 215.5);The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands 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.
No petrol palettes yet
Run npm run generate to build the dataset.