#171D86#171D86

#171D86 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.169 H 269.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#171D86
RGBrgb(23, 29, 134)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 53%)
CMYKcmyk(82.8%, 78.4%, 0%, 47.5%)
CIE-LABlab(19.15, 37.02, -58.20)
CIE-LCHlch(19.15, 68.98, 302.46°)
OKLaboklab(31.87% -0.0011 -0.1686)
OKLCHoklch(31.87% 0.169 269.6)
XYZxyz(5.0943, 2.7815, 22.8180)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D86 #868017
analogous
#175486 #171D86 #481786
triadic
#171D86 #86171D #1D8617
tetradic
#171D86 #861754 #868017 #178648
square
#171D86 #861754 #868017 #178648
split-complementary
#171D86 #864817 #548617
monochromatic
#05061E #0E1252 #171D86 #2028BA #3A43DD

Accessibility & contrast

On white

13.49
#171D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#171D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D86
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D86#FFFFFF#000000##FFFFFF
##171D861.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171d86;
/* rgb */ color: rgb(23, 29, 134);
/* oklch */ color: oklch(31.9% 0.169 269.6);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#171d86',
    950: '#000000',
  },
}
SCSS
$custom: #171d86;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#171d86",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 236.757,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31865,
    "c": 0.16859,
    "h": 269.6
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#171D86
secondary
#BAB33F
accent
#E43AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171D86

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

Preview Lab → · Contrast checker → · Palette generator →

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