Skip to main content

#0D0221 Dark Navy

The nearest named color to #0D0221 is Dark Navy (#0F172A).

#0D0221

Dark Navy

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

HEX
#0D0221
RGB
rgb(13, 2, 33)
HSL
hsl(261, 89%, 7%)
OKLCH
oklch(14.2% 0.066 296)
CMYK
61, 94, 0, 87

#0D0221 has a contrast ratio of 20.04:1 against white and 1.05: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 → #0D0221
#0D0221
Same color
White
20.0AAA
Near-black
1.1Fail

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 #0D0221 · 20.0:1

Tints and shades of #0D0221

Same hue and chroma in OKLCH, lighter to darker.

  1. #F6F3FF
  2. #D9CDFD
  3. #BAAFDD
  4. #9C91BE
  5. #7F749F
  6. #635882
  7. #493E65
  8. #30254A
  9. #0D0221

Colors that go with #0D0221

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. Deep Purple, #4B0557 and Midnight Blue, #051157; Deep Purple, #4B0557 and Prussian Blue, #053A57; Byzantium, #6E0749 and Prussian Blue, #053A57 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: #0D0221; /* Dark Navy */
}

Palettes, gradients and meshes with #0D0221

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

Palettes (17)

Gradients (1)

Mesh gradients (5)