Skip to main content

#2D3E40 Onyx

#2D3E40 is Onyx.

#2D3E40

Onyx

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

HEX
#2D3E40
RGB
rgb(45, 62, 64)
HSL
hsl(186, 17%, 21%)
OKLCH
oklch(35.0% 0.022 205)
CMYK
30, 3, 0, 75

#2D3E40 has a contrast ratio of 11.20:1 against white and 1.87: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 → #2D3E40
#2D3E40
Same color
White
11.2AAA
Near-black
1.6Fail

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 #2D3E40 · 11.2:1

Tints and shades of #2D3E40

Same hue and chroma in OKLCH, lighter to darker.

  1. #E5FAFC
  2. #C6DADC
  3. #A7BBBD
  4. #8A9D9F
  5. #6D8082
  6. #526466
  7. #2D3E40
  8. #203032
  9. #09191B

Colors that go with #2D3E40

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: #2D3E40; /* Onyx */
}

Palettes, gradients and meshes with #2D3E40

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