#171589#171589

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

Color values

HEX#171589
RGBrgb(23, 21, 137)
HSLhsl(241, 73%, 31%)
HSVhsv(241, 85%, 54%)
CMYKcmyk(83.2%, 84.7%, 0%, 46.3%)
CIE-LABlab(18.03, 42.35, -61.94)
CIE-LCHlch(18.03, 75.04, 304.36°)
OKLaboklab(31.19% 0.0004 -0.1793)
OKLCHoklch(31.19% 0.179 270.1)
XYZxyz(5.1353, 2.5240, 23.8786)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171589 #878915
analogous
#154D89 #171589 #511589
triadic
#171589 #891715 #158917
tetradic
#171589 #89154D #878915 #158951
square
#171589 #89154D #878915 #158951
split-complementary
#171589 #895115 #4D8915
monochromatic
#05051F #0E0D54 #171589 #201DBE #3B38E0

Accessibility & contrast

On white

13.95
#171589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171589
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171589#FFFFFF#000000##FFFFFF
##1715891.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328C
Deuteranopia (green-blind)
#002687
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171589;
/* rgb */ color: rgb(23, 21, 137);
/* oklch */ color: oklch(31.2% 0.179 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d56ad',
    500: '#171589',
    950: '#000000',
  },
}
SCSS
$custom: #171589;
$custom-light: #6d56ad;
$custom-dark: #000000;
JSON
{
  "hex": "#171589",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 241.034,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.1793,
    "h": 270.1
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#171589
secondary
#BBBD3D
accent
#F038ED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171589

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

Preview Lab → · Contrast checker → · Palette generator →

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