#171E8B#171E8B

#171E8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.174 H 269.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#171E8B
RGBrgb(23, 30, 139)
HSLhsl(236, 72%, 32%)
HSVhsv(236, 83%, 55%)
CMYKcmyk(83.5%, 78.4%, 0%, 45.5%)
CIE-LABlab(19.94, 38.20, -60.02)
CIE-LCHlch(19.94, 71.15, 302.48°)
OKLaboklab(32.6% -0.0022 -0.1739)
OKLCHoklch(32.6% 0.174 269.3)
XYZxyz(5.4762, 2.9741, 24.7065)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E8B #8B8417
analogous
#17588B #171E8B #4A178B
triadic
#171E8B #8B171E #1E8B17
tetradic
#171E8B #8B1758 #8B8417 #178B4A
square
#171E8B #8B1758 #8B8417 #178B4A
split-complementary
#171E8B #8B4A17 #588B17
monochromatic
#060722 #0E1356 #171E8B #2029C0 #3D47DF

Accessibility & contrast

On white

13.17
#171E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E8B
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E8B#FFFFFF#000000##FFFFFF
##171E8B1.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171e8b;
/* rgb */ color: rgb(23, 30, 139);
/* oklch */ color: oklch(32.6% 0.174 269.3);
Tailwind
colors: {
  custom: {
    50: '#6c5bae',
    500: '#171e8b',
    950: '#000000',
  },
}
SCSS
$custom: #171e8b;
$custom-light: #6c5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#171e8b",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 236.379,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32598,
    "c": 0.1739,
    "h": 269.3
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#171E8B
secondary
#BFB73F
accent
#E339EE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #171E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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