Skip to main content

#1C1440 Midnight

#1C1440 is Midnight.

#1C1440

Midnight

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

HEX
#1C1440
RGB
rgb(28, 20, 64)
HSL
hsl(251, 52%, 16%)
OKLCH
oklch(23.1% 0.080 287)
CMYK
56, 69, 0, 75

#1C1440 has a contrast ratio of 17.16:1 against white and 1.22: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 → #1C1440
#1C1440
Same color
White
17.2AAA
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 #1C1440 · 17.2:1

Tints and shades of #1C1440

Same hue and chroma in OKLCH, lighter to darker.

  1. #F4F4FF
  2. #D2D0FF
  3. #B2AFE8
  4. #9591C8
  5. #7875A9
  6. #5D598B
  7. #433E6E
  8. #2B2552
  9. #1C1440

Colors that go with #1C1440

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, #4A1E5F and Space Cadet, #162546; Deep Purple, #4A1E5F and Deep Teal, #163D46 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: #1C1440; /* Midnight */
}

Palettes, gradients and meshes with #1C1440

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