#171A8E#171A8E

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

Color values

HEX#171A8E
RGBrgb(23, 26, 142)
HSLhsl(238, 72%, 32%)
HSVhsv(238, 84%, 56%)
CMYKcmyk(83.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(19.53, 41.46, -62.58)
CIE-LCHlch(19.53, 75.06, 303.53°)
OKLaboklab(32.41% -0.0017 -0.1812)
OKLCHoklch(32.41% 0.181 269.4)
XYZxyz(5.6036, 2.8733, 25.8452)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A8E #8E8B17
analogous
#17568E #171A8E #4F178E
triadic
#171A8E #8E171A #1A8E17
tetradic
#171A8E #8E1756 #8E8B17 #178E4F
square
#171A8E #8E1756 #8E8B17 #178E4F
split-complementary
#171A8E #8E4F17 #568E17
monochromatic
#060725 #0E1059 #171A8E #2024C3 #3F43E0

Accessibility & contrast

On white

13.34
#171A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A8E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A8E#FFFFFF#000000##FFFFFF
##171A8E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171a8e;
/* rgb */ color: rgb(23, 26, 142);
/* oklch */ color: oklch(32.4% 0.181 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d59b0',
    500: '#171a8e',
    950: '#000000',
  },
}
SCSS
$custom: #171a8e;
$custom-light: #6d59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#171a8e",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 238.487,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32414,
    "c": 0.18124,
    "h": 269.4
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#171A8E
secondary
#C0BD40
accent
#EA39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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