Skip to main content

#1F5F99 Denim

The nearest named color to #1F5F99 is Denim (#1560BD).

#1F5F99

Denim

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

HEX
#1F5F99
RGB
rgb(31, 95, 153)
HSL
hsl(209, 66%, 36%)
OKLCH
oklch(47.5% 0.113 250)
CMYK
80, 38, 0, 40

#1F5F99 has a contrast ratio of 6.66:1 against white and 3.16: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 → #1F5F99
#1F5F99
Same color
White
6.7AA
Near-black
2.6Fail

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 #1F5F99 · 6.7:1

Tints and shades of #1F5F99

Same hue and chroma in OKLCH, lighter to darker.

  1. #EEF6FF
  2. #B6DAFF
  3. #7DBCFC
  4. #5F9DDC
  5. #4280BC
  6. #1F5F99
  7. #00477E
  8. #002E55
  9. #00172F

Colors that go with #1F5F99

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. No two swatches become hard to tell apart here.

Export

Copy-paste code, or download the swatches.

:root {
  --denim-1: #1F5F99; /* Denim */
}

Palettes, gradients and meshes with #1F5F99

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

Palettes (12)

Gradients (1)