Skip to main content

#1A2A6C Midnight Blue

The nearest named color to #1A2A6C is Midnight Blue (#191970).

#1A2A6C

Midnight Blue

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

HEX
#1A2A6C
RGB
rgb(26, 42, 108)
HSL
hsl(228, 61%, 26%)
OKLCH
oklch(31.6% 0.117 268)
CMYK
76, 61, 0, 58

#1A2A6C has a contrast ratio of 13.19:1 against white and 1.59: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 → #1A2A6C
#1A2A6C
Same color
White
13.2AAA
Near-black
1.3Fail

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 #1A2A6C · 13.2:1

Tints and shades of #1A2A6C

Same hue and chroma in OKLCH, lighter to darker.

  1. #F1F5FF
  2. #C4D5FF
  3. #98B4FF
  4. #7A95E1
  5. #5F78C1
  6. #445BA2
  7. #2C3F83
  8. #1A2A6C
  9. #050749

Colors that go with #1A2A6C

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. Midnight Blue, #1A2A6C and Indigo, #43228D; Midnight Blue, #1A2A6C and Prussian Blue, #123A4B 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: #1A2A6C; /* Midnight Blue */
}

Palettes, gradients and meshes with #1A2A6C

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