#171F86#171F86

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

Color values

HEX#171F86
RGBrgb(23, 31, 134)
HSLhsl(236, 71%, 31%)
HSVhsv(236, 83%, 53%)
CMYKcmyk(82.8%, 76.9%, 0%, 47.5%)
CIE-LABlab(19.57, 35.83, -57.50)
CIE-LCHlch(19.57, 67.75, 301.93°)
OKLaboklab(32.16% -0.0018 -0.1666)
OKLCHoklch(32.16% 0.167 269.4)
XYZxyz(5.1449, 2.8828, 22.8349)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F86 #867E17
analogous
#175686 #171F86 #461786
triadic
#171F86 #86171F #1F8617
tetradic
#171F86 #861756 #867E17 #178646
square
#171F86 #861756 #867E17 #178646
split-complementary
#171F86 #864617 #568617
monochromatic
#05071E #0E1352 #171F86 #202BBA #3A46DD

Accessibility & contrast

On white

13.32
#171F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#171F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F86
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F86#FFFFFF#000000##FFFFFF
##171F861.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171f86;
/* rgb */ color: rgb(23, 31, 134);
/* oklch */ color: oklch(32.2% 0.167 269.4);
Tailwind
colors: {
  custom: {
    50: '#6b5caa',
    500: '#171f86',
    950: '#000000',
  },
}
SCSS
$custom: #171f86;
$custom-light: #6b5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#171f86",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 235.676,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32163,
    "c": 0.1666,
    "h": 269.4
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#171F86
secondary
#BAB13F
accent
#E13AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171F86

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

Preview Lab → · Contrast checker → · Palette generator →

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