#171886#171886

#171886 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.173 H 270.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#171886
RGBrgb(23, 24, 134)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 53%)
CMYKcmyk(82.8%, 82.1%, 0%, 47.5%)
CIE-LABlab(18.17, 39.83, -59.82)
CIE-LCHlch(18.17, 71.86, 303.66°)
OKLaboklab(31.18% 0.0004 -0.1732)
OKLCHoklch(31.18% 0.173 270.1)
XYZxyz(4.9816, 2.5561, 22.7805)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171886 #868517
analogous
#175086 #171886 #4D1786
triadic
#171886 #861718 #188617
tetradic
#171886 #861750 #868517 #17864D
square
#171886 #861750 #868517 #17864D
split-complementary
#171886 #864D17 #508617
monochromatic
#05051E #0E0F52 #171886 #2021BA #3A3CDD

Accessibility & contrast

On white

13.89
#171886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171886
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171886#FFFFFF#000000##FFFFFF
##1718861.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171886;
/* rgb */ color: rgb(23, 24, 134);
/* oklch */ color: oklch(31.2% 0.173 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b57ab',
    500: '#171886',
    950: '#000000',
  },
}
SCSS
$custom: #171886;
$custom-light: #6b57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#171886",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 239.459,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31178,
    "c": 0.17321,
    "h": 270.1
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#171886
secondary
#BAB93F
accent
#EC3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171886

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

Preview Lab → · Contrast checker → · Palette generator →

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