#171687#171687

#171687 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.176 H 270.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#171687
RGBrgb(23, 22, 135)
HSLhsl(241, 72%, 31%)
HSVhsv(241, 84%, 53%)
CMYKcmyk(83%, 83.7%, 0%, 47.1%)
CIE-LABlab(17.94, 41.20, -60.83)
CIE-LCHlch(17.94, 73.47, 304.11°)
OKLaboklab(31.05% 0.0007 -0.1761)
OKLCHoklch(31.05% 0.176 270.2)
XYZxyz(5.0119, 2.5047, 23.1363)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171687 #868716
analogous
#164D87 #171687 #4F1687
triadic
#171687 #871716 #168717
tetradic
#171687 #87164D #868716 #16874F
square
#171687 #87164D #868716 #16874F
split-complementary
#171687 #874F16 #4D8716
monochromatic
#05051E #0E0D52 #171687 #201FBC #3A39DF

Accessibility & contrast

On white

13.99
#171687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171687
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171687#FFFFFF#000000##FFFFFF
##1716871.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002685
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171687;
/* rgb */ color: rgb(23, 22, 135);
/* oklch */ color: oklch(31.1% 0.176 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c56ab',
    500: '#171687',
    950: '#000000',
  },
}
SCSS
$custom: #171687;
$custom-light: #6c56ab;
$custom-dark: #000000;
JSON
{
  "hex": "#171687",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 240.531,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31054,
    "c": 0.17611,
    "h": 270.2
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#171687
secondary
#BABB3E
accent
#EF39ED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171687

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

Preview Lab → · Contrast checker → · Palette generator →

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