#171D88#171D88

#171D88 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.171 H 269.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#171D88
RGBrgb(23, 29, 136)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 53%)
CMYKcmyk(83.1%, 78.7%, 0%, 46.7%)
CIE-LABlab(19.38, 37.73, -59.07)
CIE-LCHlch(19.38, 70.09, 302.57°)
OKLaboklab(32.1% -0.0014 -0.1711)
OKLCHoklch(32.1% 0.171 269.5)
XYZxyz(5.2351, 2.8378, 23.5596)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D88 #888217
analogous
#175588 #171D88 #491788
triadic
#171D88 #88171D #1D8817
tetradic
#171D88 #881755 #888217 #178849
square
#171D88 #881755 #888217 #178849
split-complementary
#171D88 #884917 #558817
monochromatic
#05071F #0E1254 #171D88 #2028BC #3B44DE

Accessibility & contrast

On white

13.40
#171D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D88
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D88#FFFFFF#000000##FFFFFF
##171D881.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171d88;
/* rgb */ color: rgb(23, 29, 136);
/* oklch */ color: oklch(32.1% 0.171 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c5bac',
    500: '#171d88',
    950: '#000000',
  },
}
SCSS
$custom: #171d88;
$custom-light: #6c5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#171d88",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 236.814,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.321,
    "c": 0.17112,
    "h": 269.5
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#171D88
secondary
#BCB53F
accent
#E43AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171D88

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

Preview Lab → · Contrast checker → · Palette generator →

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