#171D8C#171D8C

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

Color values

HEX#171D8C
RGBrgb(23, 29, 140)
HSLhsl(237, 72%, 32%)
HSVhsv(237, 84%, 55%)
CMYKcmyk(83.6%, 79.3%, 0%, 45.1%)
CIE-LABlab(19.86, 39.13, -60.78)
CIE-LCHlch(19.86, 72.29, 302.77°)
OKLaboklab(32.57% -0.0021 -0.1761)
OKLCHoklch(32.57% 0.176 269.3)
XYZxyz(5.5247, 2.9537, 25.0848)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D8C #8C8617
analogous
#17588C #171D8C #4C178C
triadic
#171D8C #8C171D #1D8C17
tetradic
#171D8C #8C1758 #8C8617 #178C4C
square
#171D8C #8C1758 #8C8617 #178C4C
split-complementary
#171D8C #8C4C17 #588C17
monochromatic
#060723 #0E1257 #171D8C #2028C1 #3E46DF

Accessibility & contrast

On white

13.20
#171D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D8C
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D8C#FFFFFF#000000##FFFFFF
##171D8C1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171d8c;
/* rgb */ color: rgb(23, 29, 140);
/* oklch */ color: oklch(32.6% 0.176 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d5baf',
    500: '#171d8c',
    950: '#000000',
  },
}
SCSS
$custom: #171d8c;
$custom-light: #6d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#171d8c",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 236.923,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32574,
    "c": 0.1761,
    "h": 269.3
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#171D8C
secondary
#BFB93F
accent
#E539EF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #171D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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