#171C8E#171C8E

#171C8E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.179 H 269.3°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#171C8E
RGBrgb(23, 28, 142)
HSLhsl(237, 72%, 32%)
HSVhsv(237, 84%, 56%)
CMYKcmyk(83.8%, 80.3%, 0%, 44.3%)
CIE-LABlab(19.90, 40.38, -61.96)
CIE-LCHlch(19.90, 73.95, 303.09°)
OKLaboklab(32.68% -0.0022 -0.1795)
OKLCHoklch(32.68% 0.179 269.3)
XYZxyz(5.6494, 2.9650, 25.8605)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C8E #8E8917
analogous
#17588E #171C8E #4E178E
triadic
#171C8E #8E171C #1C8E17
tetradic
#171C8E #8E1758 #8E8917 #178E4E
square
#171C8E #8E1758 #8E8917 #178E4E
split-complementary
#171C8E #8E4E17 #588E17
monochromatic
#060725 #0E1259 #171C8E #2026C3 #3F46E0

Accessibility & contrast

On white

13.18
#171C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C8E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C8E#FFFFFF#000000##FFFFFF
##171C8E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171c8e;
/* rgb */ color: rgb(23, 28, 142);
/* oklch */ color: oklch(32.7% 0.179 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ab0',
    500: '#171c8e',
    950: '#000000',
  },
}
SCSS
$custom: #171c8e;
$custom-light: #6d5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#171c8e",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 237.479,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32676,
    "c": 0.17948,
    "h": 269.3
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#171C8E
secondary
#C0BB40
accent
#E739EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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