#171B89#171B89

#171B89 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.174 H 269.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#171B89
RGBrgb(23, 27, 137)
HSLhsl(238, 71%, 31%)
HSVhsv(238, 83%, 54%)
CMYKcmyk(83.2%, 80.3%, 0%, 46.3%)
CIE-LABlab(19.10, 39.21, -60.15)
CIE-LCHlch(19.10, 71.81, 303.10°)
OKLaboklab(31.94% -0.001 -0.1742)
OKLCHoklch(31.94% 0.174 269.7)
XYZxyz(5.2591, 2.7716, 23.9198)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B89 #898517
analogous
#175489 #171B89 #4C1789
triadic
#171B89 #89171B #1B8917
tetradic
#171B89 #891754 #898517 #17894C
square
#171B89 #891754 #898517 #17894C
split-complementary
#171B89 #894C17 #548917
monochromatic
#050620 #0E1155 #171B89 #2025BD #3C42DE

Accessibility & contrast

On white

13.51
#171B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B89
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B89#FFFFFF#000000##FFFFFF
##171B891.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b89;
/* rgb */ color: rgb(23, 27, 137);
/* oklch */ color: oklch(31.9% 0.174 269.7);
Tailwind
colors: {
  custom: {
    50: '#6c59ad',
    500: '#171b89',
    950: '#000000',
  },
}
SCSS
$custom: #171b89;
$custom-light: #6c59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#171b89",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 237.895,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31939,
    "c": 0.17423,
    "h": 269.7
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#171B89
secondary
#BDB83F
accent
#E83AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171B89

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

Preview Lab → · Contrast checker → · Palette generator →

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