Skip to main content

#221F69 Midnight Blue

#221F69 is Midnight Blue.

#221F69

Midnight Blue

What are the RGB, HSL, OKLCH and CMYK values of #221F69?

HEX
#221F69
RGB
rgb(34, 31, 105)
HSL
hsl(242, 54%, 27%)
OKLCH
oklch(29.7% 0.125 277)
CMYK
68, 70, 0, 59

#221F69 has a contrast ratio of 14.31:1 against white and 1.47: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 → #221F69
#221F69
Same color
White
14.3AAA
Near-black
1.2Fail

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 #221F69 · 14.3:1

Tints and shades of #221F69

Same hue and chroma in OKLCH, lighter to darker.

  1. #F2F4FF
  2. #CBD2FF
  3. #A5AFFF
  4. #8690E5
  5. #6B73C4
  6. #5056A5
  7. #383A86
  8. #221F69
  9. #10004C

Colors that go with #221F69

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. Navy Blue, #162E4A and Dark Teal, #154547 become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --midnight-blue-1: #221F69; /* Midnight Blue */
}

Palettes, gradients and meshes with #221F69

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

Palettes (22)

Gradients (3)

Mesh gradients (5)