#171C76#171C76

#171C76 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.149 H 270.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#171C76
RGBrgb(23, 28, 118)
HSLhsl(237, 67%, 28%)
HSVhsv(237, 81%, 46%)
CMYKcmyk(80.5%, 76.3%, 0%, 53.7%)
CIE-LABlab(17.09, 31.85, -51.43)
CIE-LCHlch(17.09, 60.49, 301.77°)
OKLaboklab(29.86% 0.002 -0.1489)
OKLCHoklch(29.86% 0.149 270.8)
XYZxyz(4.0375, 2.3202, 17.3711)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C76 #767117
analogous
#174C76 #171C76 #411776
triadic
#171C76 #76171C #1C7617
tetradic
#171C76 #76174C #767117 #177641
square
#171C76 #76174C #767117 #177641
split-complementary
#171C76 #764117 #4C7617
monochromatic
#05061A #0D1043 #171C76 #2128A9 #3139D7

Accessibility & contrast

On white

14.34
#171C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C76
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C76#FFFFFF#000000##FFFFFF
##171C761.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171c76;
/* rgb */ color: rgb(23, 28, 118);
/* oklch */ color: oklch(29.9% 0.149 270.8);
Tailwind
colors: {
  custom: {
    50: '#67599f',
    500: '#171c76',
    950: '#000000',
  },
}
SCSS
$custom: #171c76;
$custom-light: #67599f;
$custom-dark: #000000;
JSON
{
  "hex": "#171c76",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 236.842,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29856,
    "c": 0.14893,
    "h": 270.8
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#171C76
secondary
#ABA63E
accent
#E13EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171C76

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

Preview Lab → · Contrast checker → · Palette generator →

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