#171C8D#171C8D

#171C8D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.178 H 269.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#171C8D
RGBrgb(23, 28, 141)
HSLhsl(237, 72%, 32%)
HSVhsv(237, 84%, 55%)
CMYKcmyk(83.7%, 80.1%, 0%, 44.7%)
CIE-LABlab(19.78, 40.03, -61.53)
CIE-LCHlch(19.78, 73.41, 303.05°)
OKLaboklab(32.56% -0.002 -0.1782)
OKLCHoklch(32.56% 0.178 269.3)
XYZxyz(5.5747, 2.9351, 25.4669)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C8D #8D8817
analogous
#17578D #171C8D #4D178D
triadic
#171C8D #8D171C #1C8D17
tetradic
#171C8D #8D1757 #8D8817 #178D4D
square
#171C8D #8D1757 #8D8817 #178D4D
split-complementary
#171C8D #8D4D17 #578D17
monochromatic
#060724 #0E1258 #171C8D #2026C2 #3F46E0

Accessibility & contrast

On white

13.23
#171C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#171C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C8D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C8D#FFFFFF#000000##FFFFFF
##171C8D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171c8d;
/* rgb */ color: rgb(23, 28, 141);
/* oklch */ color: oklch(32.6% 0.178 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ab0',
    500: '#171c8d',
    950: '#000000',
  },
}
SCSS
$custom: #171c8d;
$custom-light: #6d5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#171c8d",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 237.458,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.17826,
    "h": 269.3
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#171C8D
secondary
#C0BA40
accent
#E739EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #171C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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