Skip to main content

#2A5298 Cobalt

The nearest named color to #2A5298 is Cobalt (#0047AB).

#2A5298

Cobalt

What are the RGB, HSL, OKLCH and CMYK values of #2A5298?

HEX
#2A5298
RGB
rgb(42, 82, 152)
HSL
hsl(218, 57%, 38%)
OKLCH
oklch(44.8% 0.123 261)
CMYK
72, 46, 0, 40

#2A5298 has a contrast ratio of 7.61:1 against white and 2.76: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.1. White and near-black text on this color.

WCAG contrast ratio for each text and background color combination
Text ↓ / Bg → #2A5298
#2A5298
Same color
White
7.6AAA
Near-black
2.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 #2A5298 · 7.6:1

Tints and shades of #2A5298

Same hue and chroma in OKLCH, lighter to darker.

  1. #F0F5FF
  2. #BFD7FF
  3. #8DB7FF
  4. #6C98E4
  5. #507BC4
  6. #2A5298
  7. #1B4286
  8. #012769
  9. #00123C

Colors that go with #2A5298

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, #2A5298 and Cobalt, #4533B8 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: #2A5298; /* Cobalt */
}

Palettes, gradients and meshes with #2A5298

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

Palettes (10)

Gradients (1)

Mesh gradients (3)