#171C88#171C88

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

Color values

HEX#171C88
RGBrgb(23, 28, 136)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 53%)
CMYKcmyk(83.1%, 79.4%, 0%, 46.7%)
CIE-LABlab(19.18, 38.31, -59.40)
CIE-LCHlch(19.18, 70.68, 302.82°)
OKLaboklab(31.96% -0.0011 -0.1721)
OKLCHoklch(31.96% 0.172 269.6)
XYZxyz(5.2110, 2.7896, 23.5516)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C88 #888317
analogous
#175488 #171C88 #4A1788
triadic
#171C88 #88171C #1C8817
tetradic
#171C88 #881754 #888317 #17884A
square
#171C88 #881754 #888317 #17884A
split-complementary
#171C88 #884A17 #548817
monochromatic
#05061F #0E1154 #171C88 #2027BC #3B43DE

Accessibility & contrast

On white

13.48
#171C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C88
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C88#FFFFFF#000000##FFFFFF
##171C881.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171c88;
/* rgb */ color: rgb(23, 28, 136);
/* oklch */ color: oklch(32.0% 0.172 269.6);
Tailwind
colors: {
  custom: {
    50: '#6c5aac',
    500: '#171c88',
    950: '#000000',
  },
}
SCSS
$custom: #171c88;
$custom-light: #6c5aac;
$custom-dark: #000000;
JSON
{
  "hex": "#171c88",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 237.345,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.17206,
    "h": 269.6
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#171C88
secondary
#BCB63F
accent
#E63AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171C88

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

Preview Lab → · Contrast checker → · Palette generator →

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