#171F88#171F88

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

Color values

HEX#171F88
RGBrgb(23, 31, 136)
HSLhsl(236, 71%, 31%)
HSVhsv(236, 83%, 53%)
CMYKcmyk(83.1%, 77.2%, 0%, 46.7%)
CIE-LABlab(19.80, 36.55, -58.38)
CIE-LCHlch(19.80, 68.87, 302.05°)
OKLaboklab(32.4% -0.0021 -0.1691)
OKLCHoklch(32.4% 0.169 269.3)
XYZxyz(5.2857, 2.9391, 23.5765)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F88 #888017
analogous
#175788 #171F88 #471788
triadic
#171F88 #88171F #1F8817
tetradic
#171F88 #881757 #888017 #178847
square
#171F88 #881757 #888017 #178847
split-complementary
#171F88 #884717 #578817
monochromatic
#05071F #0E1354 #171F88 #202BBC #3B47DE

Accessibility & contrast

On white

13.22
#171F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#171F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F88
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F88#FFFFFF#000000##FFFFFF
##171F881.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f88;
/* rgb */ color: rgb(23, 31, 136);
/* oklch */ color: oklch(32.4% 0.169 269.3);
Tailwind
colors: {
  custom: {
    50: '#6b5cac',
    500: '#171f88',
    950: '#000000',
  },
}
SCSS
$custom: #171f88;
$custom-light: #6b5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#171f88",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 235.752,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32395,
    "c": 0.16914,
    "h": 269.3
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#171F88
secondary
#BCB33F
accent
#E13AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171F88

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

Preview Lab → · Contrast checker → · Palette generator →

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