#171988#171988

#171988 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.175 H 269.9°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#171988
RGBrgb(23, 25, 136)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 53%)
CMYKcmyk(83.1%, 81.6%, 0%, 46.7%)
CIE-LABlab(18.60, 39.97, -60.36)
CIE-LCHlch(18.60, 72.39, 303.51°)
OKLaboklab(31.55% -0.0003 -0.1748)
OKLCHoklch(31.55% 0.175 269.9)
XYZxyz(5.1434, 2.6544, 23.5290)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171988 #888617
analogous
#175188 #171988 #4D1788
triadic
#171988 #881719 #198817
tetradic
#171988 #881751 #888617 #17884D
square
#171988 #881751 #888617 #17884D
split-complementary
#171988 #884D17 #518817
monochromatic
#05061F #0E0F54 #171988 #2023BC #3B3EDE

Accessibility & contrast

On white

13.72
#171988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#171988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171988
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171988#FFFFFF#000000##FFFFFF
##1719881.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171988;
/* rgb */ color: rgb(23, 25, 136);
/* oklch */ color: oklch(31.6% 0.175 269.9);
Tailwind
colors: {
  custom: {
    50: '#6c58ac',
    500: '#171988',
    950: '#000000',
  },
}
SCSS
$custom: #171988;
$custom-light: #6c58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#171988",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 238.938,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31552,
    "c": 0.17479,
    "h": 269.9
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#171988
secondary
#BCBA3F
accent
#EB3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171988

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

Preview Lab → · Contrast checker → · Palette generator →

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