#171F8E#171F8E

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

Color values

HEX#171F8E
RGBrgb(23, 31, 142)
HSLhsl(236, 72%, 32%)
HSVhsv(236, 84%, 56%)
CMYKcmyk(83.8%, 78.2%, 0%, 44.3%)
CIE-LABlab(20.50, 38.67, -60.97)
CIE-LCHlch(20.50, 72.20, 302.39°)
OKLaboklab(33.09% -0.0031 -0.1767)
OKLCHoklch(33.09% 0.177 269)
XYZxyz(5.7241, 3.1144, 25.8854)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F8E #8E8617
analogous
#175B8E #171F8E #4A178E
triadic
#171F8E #8E171F #1F8E17
tetradic
#171F8E #8E175B #8E8617 #178E4A
square
#171F8E #8E175B #8E8617 #178E4A
split-complementary
#171F8E #8E4A17 #5B8E17
monochromatic
#060825 #0E1459 #171F8E #202AC3 #3F4AE0

Accessibility & contrast

On white

12.94
#171F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F8E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F8E#FFFFFF#000000##FFFFFF
##171F8E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f8e;
/* rgb */ color: rgb(23, 31, 142);
/* oklch */ color: oklch(33.1% 0.177 269.0);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#171f8e',
    950: '#000000',
  },
}
SCSS
$custom: #171f8e;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#171f8e",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 235.966,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33094,
    "c": 0.17669,
    "h": 269
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#171F8E
secondary
#C0B840
accent
#E339EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #171F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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