Skip to main content

#0F172A Dark Navy

#0F172A is Dark Navy.

#0F172A

Dark Navy

What are the RGB, HSL, OKLCH and CMYK values of #0F172A?

HEX
#0F172A
RGB
rgb(15, 23, 42)
HSL
hsl(222, 47%, 11%)
OKLCH
oklch(20.8% 0.040 266)
CMYK
64, 45, 0, 84

#0F172A has a contrast ratio of 17.85:1 against white and 1.18: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 → #0F172A
#0F172A
Same color
White
17.9AAA
Near-black
1.0Fail

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 #0F172A · 17.9:1

Tints and shades of #0F172A

Same hue and chroma in OKLCH, lighter to darker.

  1. #F1F5FF
  2. #C9D6F1
  3. #ABB7D1
  4. #8D99B2
  5. #717C94
  6. #556077
  7. #3B455C
  8. #232C41
  9. #0F172A

Colors that go with #0F172A

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. Gunmetal, #183B44 and Byzantium, #532466 become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --dark-navy-1: #0F172A; /* Dark Navy */
}

Palettes, gradients and meshes with #0F172A

Items using this color or one perceptually close to it, closest first (up to 24 palettes and 12 each of gradients and meshes).