#171A89#171A89

#171A89 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.175 H 269.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#171A89
RGBrgb(23, 26, 137)
HSLhsl(238, 71%, 31%)
HSVhsv(238, 83%, 54%)
CMYKcmyk(83.2%, 81%, 0%, 46.3%)
CIE-LABlab(18.91, 39.77, -60.47)
CIE-LCHlch(18.91, 72.37, 303.33°)
OKLaboklab(31.81% -0.0007 -0.1751)
OKLCHoklch(31.81% 0.175 269.8)
XYZxyz(5.2366, 2.7265, 23.9123)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A89 #898617
analogous
#175389 #171A89 #4D1789
triadic
#171A89 #89171A #1A8917
tetradic
#171A89 #891753 #898617 #17894D
square
#171A89 #891753 #898617 #17894D
split-complementary
#171A89 #894D17 #538917
monochromatic
#050620 #0E1055 #171A89 #2024BD #3C40DE

Accessibility & contrast

On white

13.59
#171A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#171A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A89
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A89#FFFFFF#000000##FFFFFF
##171A891.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171a89;
/* rgb */ color: rgb(23, 26, 137);
/* oklch */ color: oklch(31.8% 0.175 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c59ad',
    500: '#171a89',
    950: '#000000',
  },
}
SCSS
$custom: #171a89;
$custom-light: #6c59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#171a89",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 238.421,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.17514,
    "h": 269.8
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#171A89
secondary
#BDB93F
accent
#E93AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171A89

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

Preview Lab → · Contrast checker → · Palette generator →

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