#171888#171888

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

Color values

HEX#171888
RGBrgb(23, 24, 136)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 53%)
CMYKcmyk(83.1%, 82.4%, 0%, 46.7%)
CIE-LABlab(18.42, 40.50, -60.66)
CIE-LCHlch(18.42, 72.94, 303.73°)
OKLaboklab(31.42% 0 -0.1757)
OKLCHoklch(31.42% 0.176 270)
XYZxyz(5.1224, 2.6124, 23.5220)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171888 #888717
analogous
#175088 #171888 #4E1788
triadic
#171888 #881718 #188817
tetradic
#171888 #881750 #888717 #17884E
square
#171888 #881750 #888717 #17884E
split-complementary
#171888 #884E17 #508817
monochromatic
#05061F #0E0F54 #171888 #2021BC #3B3DDE

Accessibility & contrast

On white

13.79
#171888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171888
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171888#FFFFFF#000000##FFFFFF
##1718881.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002786
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171888;
/* rgb */ color: rgb(23, 24, 136);
/* oklch */ color: oklch(31.4% 0.176 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c58ac',
    500: '#171888',
    950: '#000000',
  },
}
SCSS
$custom: #171888;
$custom-light: #6c58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#171888",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 239.469,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31424,
    "c": 0.17566,
    "h": 270
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#171888
secondary
#BCBB3F
accent
#EC3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171888

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

Preview Lab → · Contrast checker → · Palette generator →

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