#171C8C#171C8C

#171C8C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.177 H 269.4°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#171C8C
RGBrgb(23, 28, 140)
HSLhsl(237, 72%, 32%)
HSVhsv(237, 84%, 55%)
CMYKcmyk(83.6%, 80%, 0%, 45.1%)
CIE-LABlab(19.66, 39.69, -61.11)
CIE-LCHlch(19.66, 72.87, 303.00°)
OKLaboklab(32.44% -0.0019 -0.177)
OKLCHoklch(32.44% 0.177 269.4)
XYZxyz(5.5006, 2.9055, 25.0768)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C8C #8C8717
analogous
#17578C #171C8C #4D178C
triadic
#171C8C #8C171C #1C8C17
tetradic
#171C8C #8C1757 #8C8717 #178C4D
square
#171C8C #8C1757 #8C8717 #178C4D
split-complementary
#171C8C #8C4D17 #578C17
monochromatic
#060723 #0E1157 #171C8C #2027C1 #3E45DF

Accessibility & contrast

On white

13.28
#171C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#171C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C8C
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C8C#FFFFFF#000000##FFFFFF
##171C8C1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171c8c;
/* rgb */ color: rgb(23, 28, 140);
/* oklch */ color: oklch(32.4% 0.177 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d5aaf',
    500: '#171c8c',
    950: '#000000',
  },
}
SCSS
$custom: #171c8c;
$custom-light: #6d5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#171c8c",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 237.436,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32436,
    "c": 0.17703,
    "h": 269.4
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#171C8C
secondary
#BFBA3F
accent
#E739EF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #171C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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