#171D76#171D76

#171D76 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.148 H 270.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#171D76
RGBrgb(23, 29, 118)
HSLhsl(236, 67%, 28%)
HSVhsv(236, 81%, 46%)
CMYKcmyk(80.5%, 75.4%, 0%, 53.7%)
CIE-LABlab(17.31, 31.22, -51.05)
CIE-LCHlch(17.31, 59.84, 301.44°)
OKLaboklab(30.02% 0.0015 -0.1478)
OKLCHoklch(30.02% 0.148 270.6)
XYZxyz(4.0616, 2.3684, 17.3791)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D76 #767017
analogous
#174C76 #171D76 #411776
triadic
#171D76 #76171D #1D7617
tetradic
#171D76 #76174C #767017 #177641
square
#171D76 #76174C #767017 #177641
split-complementary
#171D76 #764117 #4C7617
monochromatic
#05061A #0D1043 #171D76 #212AA9 #313BD7

Accessibility & contrast

On white

14.25
#171D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#171D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D76
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D76#FFFFFF#000000##FFFFFF
##171D761.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d76;
/* rgb */ color: rgb(23, 29, 118);
/* oklch */ color: oklch(30.0% 0.148 270.6);
Tailwind
colors: {
  custom: {
    50: '#665a9f',
    500: '#171d76',
    950: '#000000',
  },
}
SCSS
$custom: #171d76;
$custom-light: #665a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#171d76",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 118
  },
  "hsl": {
    "h": 236.211,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30018,
    "c": 0.14784,
    "h": 270.6
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#171D76
secondary
#ABA43E
accent
#DF3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171D76

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

Preview Lab → · Contrast checker → · Palette generator →

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