#171D8D#171D8D

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

Color values

HEX#171D8D
RGBrgb(23, 29, 141)
HSLhsl(237, 72%, 32%)
HSVhsv(237, 84%, 55%)
CMYKcmyk(83.7%, 79.4%, 0%, 44.7%)
CIE-LABlab(19.98, 39.47, -61.21)
CIE-LCHlch(19.98, 72.83, 302.82°)
OKLaboklab(32.69% -0.0023 -0.1773)
OKLCHoklch(32.69% 0.177 269.3)
XYZxyz(5.5988, 2.9833, 25.4749)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D8D #8D8717
analogous
#17588D #171D8D #4C178D
triadic
#171D8D #8D171D #1D8D17
tetradic
#171D8D #8D1758 #8D8717 #178D4C
square
#171D8D #8D1758 #8D8717 #178D4C
split-complementary
#171D8D #8D4C17 #588D17
monochromatic
#060724 #0E1258 #171D8D #2028C2 #3F47E0

Accessibility & contrast

On white

13.15
#171D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#171D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D8D
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D8D#FFFFFF#000000##FFFFFF
##171D8D1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.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: #171d8d;
/* rgb */ color: rgb(23, 29, 141);
/* oklch */ color: oklch(32.7% 0.177 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d5bb0',
    500: '#171d8d',
    950: '#000000',
  },
}
SCSS
$custom: #171d8d;
$custom-light: #6d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#171d8d",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 236.949,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32693,
    "c": 0.17734,
    "h": 269.3
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#171D8D
secondary
#C0B940
accent
#E539EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #171D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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