#171F8D#171F8D

#171F8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.175 H 269.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#171F8D
RGBrgb(23, 31, 141)
HSLhsl(236, 72%, 32%)
HSVhsv(236, 84%, 55%)
CMYKcmyk(83.7%, 78%, 0%, 44.7%)
CIE-LABlab(20.38, 38.32, -60.54)
CIE-LCHlch(20.38, 71.65, 302.33°)
OKLaboklab(32.98% -0.0029 -0.1754)
OKLCHoklch(32.98% 0.175 269.1)
XYZxyz(5.6494, 3.0845, 25.4918)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F8D #8D8517
analogous
#175A8D #171F8D #4A178D
triadic
#171F8D #8D171F #1F8D17
tetradic
#171F8D #8D175A #8D8517 #178D4A
square
#171F8D #8D175A #8D8517 #178D4A
split-complementary
#171F8D #8D4A17 #5A8D17
monochromatic
#060824 #0E1358 #171F8D #202BC2 #3F4AE0

Accessibility & contrast

On white

12.99
#171F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F8D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F8D#FFFFFF#000000##FFFFFF
##171F8D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f8d;
/* rgb */ color: rgb(23, 31, 141);
/* oklch */ color: oklch(33.0% 0.175 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#171f8d',
    950: '#000000',
  },
}
SCSS
$custom: #171f8d;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#171f8d",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 235.932,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32977,
    "c": 0.17544,
    "h": 269.1
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#171F8D
secondary
#C0B740
accent
#E239EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #171F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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