#171D89#171D89

#171D89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.172 H 269.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#171D89
RGBrgb(23, 29, 137)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 54%)
CMYKcmyk(83.2%, 78.8%, 0%, 46.3%)
CIE-LABlab(19.50, 38.08, -59.50)
CIE-LCHlch(19.50, 70.64, 302.62°)
OKLaboklab(32.22% -0.0016 -0.1724)
OKLCHoklch(32.22% 0.172 269.5)
XYZxyz(5.3065, 2.8664, 23.9357)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D89 #898317
analogous
#175689 #171D89 #4A1789
triadic
#171D89 #89171D #1D8917
tetradic
#171D89 #891756 #898317 #17894A
square
#171D89 #891756 #898317 #17894A
split-complementary
#171D89 #894A17 #568917
monochromatic
#050720 #0E1255 #171D89 #2028BD #3C45DE

Accessibility & contrast

On white

13.35
#171D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#171D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D89
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D89#FFFFFF#000000##FFFFFF
##171D891.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171d89;
/* rgb */ color: rgb(23, 29, 137);
/* oklch */ color: oklch(32.2% 0.172 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c5bad',
    500: '#171d89',
    950: '#000000',
  },
}
SCSS
$custom: #171d89;
$custom-light: #6c5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#171d89",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 236.842,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32218,
    "c": 0.17237,
    "h": 269.5
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#171D89
secondary
#BDB63F
accent
#E53AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171D89

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#171D89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva