Add to Chrome

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

#07434F
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

#07434Frgb(7, 67, 79)
Color spaces of #07434f
RGB76779
HSL190°84%17%
HSV190°91%31%
CMYK0.910.150.000.69
XYZ3.50544.62358.1033
Yxy4.62350.21600.2848
CIE-Lab25.6341-13.0249-12.3430
Hunter Lab21.5024-8.5292-7.2920
OKLCH35.4%0.059215.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 numbers
BaseRedGreenBlue
Binary000001110100001101001111
Octal7103117
Decimal76779
Hex07434F

#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

  • Red4.6%
  • Green43.8%
  • Blue51.6%

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.

Get Palette Vault from the Microsoft Store