#171986#171986

#171986 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.172 H 270.0°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#171986
RGBrgb(23, 25, 134)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 53%)
CMYKcmyk(82.8%, 81.3%, 0%, 47.5%)
CIE-LABlab(18.36, 39.29, -59.51)
CIE-LCHlch(18.36, 71.31, 303.44°)
OKLaboklab(31.31% 0.0001 -0.1723)
OKLCHoklch(31.31% 0.172 270)
XYZxyz(5.0026, 2.5981, 22.7875)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171986 #868417
analogous
#175086 #171986 #4C1786
triadic
#171986 #861719 #198617
tetradic
#171986 #861750 #868417 #17864C
square
#171986 #861750 #868417 #17864C
split-complementary
#171986 #864C17 #508617
monochromatic
#05061E #0E0F52 #171986 #2023BA #3A3DDD

Accessibility & contrast

On white

13.82
#171986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#171986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171986
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171986#FFFFFF#000000##FFFFFF
##1719861.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002784
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171986;
/* rgb */ color: rgb(23, 25, 134);
/* oklch */ color: oklch(31.3% 0.172 270.0);
Tailwind
colors: {
  custom: {
    50: '#6b58aa',
    500: '#171986',
    950: '#000000',
  },
}
SCSS
$custom: #171986;
$custom-light: #6b58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#171986",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 238.919,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31308,
    "c": 0.17233,
    "h": 270
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#171986
secondary
#BAB83F
accent
#EA3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171986

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

Preview Lab → · Contrast checker → · Palette generator →

#171986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva