Skip to main content

#1E0B3B Midnight

The nearest named color to #1E0B3B is Midnight (#1E1B4B).

#1E0B3B

Midnight

What are the RGB, HSL, OKLCH and CMYK values of #1E0B3B?

HEX
#1E0B3B
RGB
rgb(30, 11, 59)
HSL
hsl(264, 69%, 14%)
OKLCH
oklch(21.3% 0.087 296)
CMYK
49, 81, 0, 77

#1E0B3B has a contrast ratio of 18.01:1 against white and 1.17: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 → #1E0B3B
#1E0B3B
Same color
White
18.0AAA
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 #1E0B3B · 18.0:1

Tints and shades of #1E0B3B

Same hue and chroma in OKLCH, lighter to darker.

  1. #F6F3FF
  2. #D9CDFF
  3. #BBACE8
  4. #9D8EC8
  5. #8171A9
  6. #65558B
  7. #4A3B6E
  8. #322152
  9. #1E0B3B

Colors that go with #1E0B3B

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. Byzantium, #55115D and Prussian Blue, #0E344D become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --midnight-1: #1E0B3B; /* Midnight */
}

Palettes, gradients and meshes with #1E0B3B

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

Palettes (30)

Gradients (4)

Mesh gradients (5)