Skip to main content

#1C023F Midnight

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

#1C023F

Midnight

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

HEX
#1C023F
RGB
rgb(28, 2, 63)
HSL
hsl(266, 94%, 13%)
OKLCH
oklch(20.0% 0.105 295)
CMYK
56, 97, 0, 75

#1C023F has a contrast ratio of 18.59:1 against white and 1.13: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 → #1C023F
#1C023F
Same color
White
18.6AAA
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 #1C023F · 18.6:1

Tints and shades of #1C023F

Same hue and chroma in OKLCH, lighter to darker.

  1. #F5F3FF
  2. #D8CDFF
  3. #BBA9F3
  4. #9D8BD3
  5. #806EB3
  6. #655395
  7. #4A3877
  8. #321D5B
  9. #1C023F

Colors that go with #1C023F

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. Purple, #5F0367 and Prussian Blue, #033459 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: #1C023F; /* Midnight */
}

Palettes, gradients and meshes with #1C023F

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

Palettes (20)

Gradients (3)

Mesh gradients (5)