#171D8E#171D8E

#171D8E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.179 H 269.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#171D8E
RGBrgb(23, 29, 142)
HSLhsl(237, 72%, 32%)
HSVhsv(237, 84%, 56%)
CMYKcmyk(83.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(20.10, 39.82, -61.63)
CIE-LCHlch(20.10, 73.38, 302.86°)
OKLaboklab(32.81% -0.0025 -0.1786)
OKLCHoklch(32.81% 0.179 269.2)
XYZxyz(5.6735, 3.0132, 25.8685)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D8E #8E8817
analogous
#17588E #171D8E #4D178E
triadic
#171D8E #8E171D #1D8E17
tetradic
#171D8E #8E1758 #8E8817 #178E4D
square
#171D8E #8E1758 #8E8817 #178E4D
split-complementary
#171D8E #8E4D17 #588E17
monochromatic
#060725 #0E1259 #171D8E #2028C3 #3F48E0

Accessibility & contrast

On white

13.10
#171D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#171D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D8E
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D8E#FFFFFF#000000##FFFFFF
##171D8E1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171d8e;
/* rgb */ color: rgb(23, 29, 142);
/* oklch */ color: oklch(32.8% 0.179 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d5bb0',
    500: '#171d8e',
    950: '#000000',
  },
}
SCSS
$custom: #171d8e;
$custom-light: #6d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#171d8e",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 236.975,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32812,
    "c": 0.17858,
    "h": 269.2
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#171D8E
secondary
#C0BA40
accent
#E639EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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