#171789#171789

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

Color values

HEX#171789
RGBrgb(23, 23, 137)
HSLhsl(240, 71%, 31%)
HSVhsv(240, 83%, 54%)
CMYKcmyk(83.2%, 83.2%, 0%, 46.3%)
CIE-LABlab(18.37, 41.36, -61.38)
CIE-LCHlch(18.37, 74.01, 303.97°)
OKLaboklab(31.42% 0 -0.1777)
OKLCHoklch(31.42% 0.178 270)
XYZxyz(5.1736, 2.6005, 23.8913)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171789 #898917
analogous
#175089 #171789 #501789
triadic
#171789 #891717 #178917
tetradic
#171789 #891750 #898917 #178950
square
#171789 #891750 #898917 #178950
split-complementary
#171789 #895017 #508917
monochromatic
#050520 #0E0E55 #171789 #2020BD #3C3CDE

Accessibility & contrast

On white

13.81
#171789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171789
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171789#FFFFFF#000000##FFFFFF
##1717891.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002787
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171789;
/* rgb */ color: rgb(23, 23, 137);
/* oklch */ color: oklch(31.4% 0.178 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c57ad',
    500: '#171789',
    950: '#000000',
  },
}
SCSS
$custom: #171789;
$custom-light: #6c57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#171789",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 240,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31424,
    "c": 0.17771,
    "h": 270
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#171789
secondary
#BDBD3F
accent
#EE3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171789

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

Preview Lab → · Contrast checker → · Palette generator →

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