#171A76#171A76

#171A76 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.151 H 271.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#171A76
RGBrgb(23, 26, 118)
HSLhsl(238, 67%, 28%)
HSVhsv(238, 81%, 46%)
CMYKcmyk(80.5%, 78%, 0%, 53.7%)
CIE-LABlab(16.64, 33.09, -52.16)
CIE-LCHlch(16.64, 61.77, 302.39°)
OKLaboklab(29.54% 0.0029 -0.151)
OKLCHoklch(29.54% 0.151 271.1)
XYZxyz(3.9916, 2.2285, 17.3558)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A76 #767317
analogous
#174A76 #171A76 #431776
triadic
#171A76 #76171A #1A7617
tetradic
#171A76 #76174A #767317 #177643
square
#171A76 #76174A #767317 #177643
split-complementary
#171A76 #764317 #4A7617
monochromatic
#05061A #0D0F43 #171A76 #2125A9 #3136D7

Accessibility & contrast

On white

14.52
#171A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A76
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A76#FFFFFF#000000##FFFFFF
##171A761.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171a76;
/* rgb */ color: rgb(23, 26, 118);
/* oklch */ color: oklch(29.5% 0.151 271.1);
Tailwind
colors: {
  custom: {
    50: '#67589f',
    500: '#171a76',
    950: '#000000',
  },
}
SCSS
$custom: #171a76;
$custom-light: #67589f;
$custom-dark: #000000;
JSON
{
  "hex": "#171a76",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 238.105,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29541,
    "c": 0.15106,
    "h": 271.1
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#171A76
secondary
#ABA83E
accent
#E53EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171A76

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

Preview Lab → · Contrast checker → · Palette generator →

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