Skip to main content

#0B004E Midnight Blue

The nearest named color to #0B004E is Midnight Blue (#191970).

#0B004E

Midnight Blue

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

HEX
#0B004E
RGB
rgb(11, 0, 78)
HSL
hsl(248, 100%, 15%)
OKLCH
oklch(20.0% 0.128 273)
CMYK
86, 100, 0, 69

#0B004E has a contrast ratio of 18.68:1 against white and 1.12: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 → #0B004E
#0B004E
Same color
White
18.7AAA
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 #0B004E · 18.7:1

Tints and shades of #0B004E

Same hue and chroma in OKLCH, lighter to darker.

  1. #F2F5FF
  2. #C7D4FF
  3. #9EB2FF
  4. #7E92E7
  5. #6375C7
  6. #4958A8
  7. #303C89
  8. #1B206B
  9. #0B004E

Colors that go with #0B004E

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. Indigo, #4C0077 and Oxford Blue, #00215C 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: #0B004E; /* Midnight Blue */
}

Palettes, gradients and meshes with #0B004E

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

Palettes (5)

Mesh gradients (3)