Skip to main content

#1E40AF Cobalt

#1E40AF is Cobalt.

#1E40AF

Cobalt

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

HEX
#1E40AF
RGB
rgb(30, 64, 175)
HSL
hsl(226, 71%, 40%)
OKLCH
oklch(42.4% 0.181 266)
CMYK
83, 63, 0, 31

#1E40AF has a contrast ratio of 8.72:1 against white and 2.41: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 → #1E40AF
#1E40AF
Same color
White
8.7AAA
Near-black
2.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 #1E40AF · 8.7:1

Tints and shades of #1E40AF

Same hue and chroma in OKLCH, lighter to darker.

  1. #F1F5FF
  2. #C2D5FF
  3. #94B5FF
  4. #6793FF
  5. #4873E6
  6. #2E54C5
  7. #1E40AF
  8. #061285
  9. #020052

Colors that go with #1E40AF

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. Cobalt, #1E40AF and Iris, #5224D2 become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --cobalt-1: #1E40AF; /* Cobalt */
}

Palettes, gradients and meshes with #1E40AF

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

Palettes (5)

Gradients (1)

Mesh gradients (1)