#171E88#171E88

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

Color values

HEX#171E88
RGBrgb(23, 30, 136)
HSLhsl(236, 71%, 31%)
HSVhsv(236, 83%, 53%)
CMYKcmyk(83.1%, 77.9%, 0%, 46.7%)
CIE-LABlab(19.59, 37.14, -58.72)
CIE-LCHlch(19.59, 69.48, 302.31°)
OKLaboklab(32.25% -0.0017 -0.1701)
OKLCHoklch(32.25% 0.17 269.4)
XYZxyz(5.2600, 2.8877, 23.5679)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E88 #888117
analogous
#175688 #171E88 #481788
triadic
#171E88 #88171E #1E8817
tetradic
#171E88 #881756 #888117 #178848
square
#171E88 #881756 #888117 #178848
split-complementary
#171E88 #884817 #568817
monochromatic
#05071F #0E1254 #171E88 #202ABC #3B46DE

Accessibility & contrast

On white

13.31
#171E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E88
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E88#FFFFFF#000000##FFFFFF
##171E881.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171e88;
/* rgb */ color: rgb(23, 30, 136);
/* oklch */ color: oklch(32.2% 0.170 269.4);
Tailwind
colors: {
  custom: {
    50: '#6b5bac',
    500: '#171e88',
    950: '#000000',
  },
}
SCSS
$custom: #171e88;
$custom-light: #6b5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#171e88",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 236.283,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32246,
    "c": 0.17014,
    "h": 269.4
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171E88

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

Preview Lab → · Contrast checker → · Palette generator →

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