Skip to main content

#2F5D6E Petrol

#2F5D6E is Petrol.

#2F5D6E

Petrol

What are the RGB, HSL, OKLCH and CMYK values of #2F5D6E?

HEX
#2F5D6E
RGB
rgb(47, 93, 110)
HSL
hsl(196, 40%, 31%)
OKLCH
oklch(45.3% 0.057 224)
CMYK
57, 15, 0, 57

#2F5D6E has a contrast ratio of 7.21:1 against white and 2.91:1 against black, so white is the better background for text in this color and light text reads best on it.

Contrast checker

Text color (rows) on background (columns), scored against WCAG 2.2. White and near-black text on this color.

WCAG contrast ratio for each text and background color combination
Text ↓ / Bg → #2F5D6E
#2F5D6E
Same color
White
7.2AAA
Near-black
2.4Fail

AAA ≥ 7:1 · AA ≥ 4.5:1 body text· AA18 ≥ 3:1 large text (18pt, or 14pt bold) only

Text that works on each color

  • White on #2F5D6E · 7.2:1

Tints and shades of #2F5D6E

Same hue and chroma in OKLCH, lighter to darker.

  1. #E8F8FF
  2. #ADDEF2
  3. #8FBFD2
  4. #72A1B3
  5. #558395
  6. #2F5D6E
  7. #1D4C5D
  8. #003242
  9. #001923

Colors that go with #2F5D6E

Six harmony rules built from this color. Open any in the Studio.

Color blindness check

About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.

Typical
Deuteranopia

No green cones — the most common form. No two swatches become hard to tell apart here.

Export

Copy-paste code, or download the swatches.

:root {
  --petrol-1: #2F5D6E; /* Petrol */
}

Palettes, gradients and meshes with #2F5D6E

Items using this color or one perceptually close to it, closest first.

Palettes (25)

Gradients (2)

Mesh gradients (6)