#171A8D#171A8D

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

Color values

HEX#171A8D
RGBrgb(23, 26, 141)
HSLhsl(238, 72%, 32%)
HSVhsv(238, 84%, 55%)
CMYKcmyk(83.7%, 81.6%, 0%, 44.7%)
CIE-LABlab(19.41, 41.12, -62.16)
CIE-LCHlch(19.41, 74.53, 303.49°)
OKLaboklab(32.29% -0.0015 -0.18)
OKLCHoklch(32.29% 0.18 269.5)
XYZxyz(5.5288, 2.8434, 25.4516)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A8D #8D8A17
analogous
#17558D #171A8D #4F178D
triadic
#171A8D #8D171A #1A8D17
tetradic
#171A8D #8D1755 #8D8A17 #178D4F
square
#171A8D #8D1755 #8D8A17 #178D4F
split-complementary
#171A8D #8D4F17 #558D17
monochromatic
#060724 #0E1058 #171A8D #2024C2 #3F43E0

Accessibility & contrast

On white

13.39
#171A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A8D
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A8D#FFFFFF#000000##FFFFFF
##171A8D1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171a8d;
/* rgb */ color: rgb(23, 26, 141);
/* oklch */ color: oklch(32.3% 0.180 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d59b0',
    500: '#171a8d',
    950: '#000000',
  },
}
SCSS
$custom: #171a8d;
$custom-light: #6d59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#171a8d",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 238.475,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.18003,
    "h": 269.5
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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