Skip to main content

#2F3B38 Onyx

#2F3B38 is Onyx.

#2F3B38

Onyx

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

HEX
#2F3B38
RGB
rgb(47, 59, 56)
HSL
hsl(165, 11%, 21%)
OKLCH
oklch(34.0% 0.017 178)
CMYK
20, 0, 5, 77

#2F3B38 has a contrast ratio of 11.64:1 against white and 1.80: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 → #2F3B38
#2F3B38
Same color
White
11.6AAA
Near-black
1.5Fail

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 #2F3B38 · 11.6:1

Tints and shades of #2F3B38

Same hue and chroma in OKLCH, lighter to darker.

  1. #EAF9F5
  2. #CAD9D5
  3. #ACBAB6
  4. #8E9C99
  5. #727F7C
  6. #566360
  7. #3C4946
  8. #2F3B38
  9. #0E1916

Colors that go with #2F3B38

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 {
  --onyx-1: #2F3B38; /* Onyx */
}

Palettes, gradients and meshes with #2F3B38

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

Palettes (75)

Gradients (6)

Mesh gradients (5)