#171E89#171E89

#171E89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.171 H 269.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#171E89
RGBrgb(23, 30, 137)
HSLhsl(236, 71%, 31%)
HSVhsv(236, 83%, 54%)
CMYKcmyk(83.2%, 78.1%, 0%, 46.3%)
CIE-LABlab(19.71, 37.50, -59.16)
CIE-LCHlch(19.71, 70.04, 302.37°)
OKLaboklab(32.36% -0.0019 -0.1714)
OKLCHoklch(32.36% 0.171 269.4)
XYZxyz(5.3314, 2.9162, 23.9440)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E89 #898217
analogous
#175789 #171E89 #491789
triadic
#171E89 #89171E #1E8917
tetradic
#171E89 #891757 #898217 #178949
square
#171E89 #891757 #898217 #178949
split-complementary
#171E89 #894917 #578917
monochromatic
#050720 #0E1355 #171E89 #2029BD #3C46DE

Accessibility & contrast

On white

13.26
#171E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#171E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E89
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E89#FFFFFF#000000##FFFFFF
##171E891.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171e89;
/* rgb */ color: rgb(23, 30, 137);
/* oklch */ color: oklch(32.4% 0.171 269.4);
Tailwind
colors: {
  custom: {
    50: '#6c5bad',
    500: '#171e89',
    950: '#000000',
  },
}
SCSS
$custom: #171e89;
$custom-light: #6c5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#171e89",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 236.316,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.1714,
    "h": 269.4
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#171E89
secondary
#BDB53F
accent
#E33AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171E89

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

Preview Lab → · Contrast checker → · Palette generator →

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