#171A96#171A96

#171A96 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.191 H 269.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#171A96
RGBrgb(23, 26, 150)
HSLhsl(239, 73%, 34%)
HSVhsv(239, 85%, 59%)
CMYKcmyk(84.7%, 82.7%, 0%, 41.2%)
CIE-LABlab(20.53, 44.11, -65.88)
CIE-LCHlch(20.53, 79.29, 303.80°)
OKLaboklab(33.4% -0.0033 -0.1908)
OKLCHoklch(33.4% 0.191 269)
XYZxyz(6.2259, 3.1222, 29.1228)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A96 #969317
analogous
#175A96 #171A96 #541796
triadic
#171A96 #96171A #1A9617
tetradic
#171A96 #96175A #969317 #179654
square
#171A96 #96175A #969317 #179654
split-complementary
#171A96 #965417 #5A9617
monochromatic
#07082C #0F1161 #171A96 #1F23CB #4549E2

Accessibility & contrast

On white

12.93
#171A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#171A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A96
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A96#FFFFFF#000000##FFFFFF
##171A961.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002B94
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171a96;
/* rgb */ color: rgb(23, 26, 150);
/* oklch */ color: oklch(33.4% 0.191 269.0);
Tailwind
colors: {
  custom: {
    50: '#705ab6',
    500: '#171a96',
    950: '#000000',
  },
}
SCSS
$custom: #171a96;
$custom-light: #705ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#171a96",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 238.583,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33397,
    "c": 0.19083,
    "h": 269
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#171A96
secondary
#C3C045
accent
#EC38F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171A96

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

Preview Lab → · Contrast checker → · Palette generator →

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