#171971#171971

#171971 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.146 H 271.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#171971
RGBrgb(23, 25, 113)
HSLhsl(239, 66%, 27%)
HSVhsv(239, 80%, 44%)
CMYKcmyk(79.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(15.85, 31.89, -50.25)
CIE-LCHlch(15.85, 59.51, 302.40°)
OKLaboklab(28.8% 0.0043 -0.1455)
OKLCHoklch(28.8% 0.146 271.7)
XYZxyz(3.6806, 2.0693, 15.8250)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171971 #716F17
analogous
#174671 #171971 #421771
triadic
#171971 #711719 #197117
tetradic
#171971 #711746 #716F17 #177142
square
#171971 #711746 #716F17 #177142
split-complementary
#171971 #714217 #467117
monochromatic
#050619 #0D0E3E #171971 #2124A4 #2E32D4

Accessibility & contrast

On white

14.85
#171971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171971
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171971#FFFFFF#000000##FFFFFF
##1719711.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171971;
/* rgb */ color: rgb(23, 25, 113);
/* oklch */ color: oklch(28.8% 0.146 271.7);
Tailwind
colors: {
  custom: {
    50: '#65579b',
    500: '#171971',
    950: '#000000',
  },
}
SCSS
$custom: #171971;
$custom-light: #65579b;
$custom-dark: #000000;
JSON
{
  "hex": "#171971",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 238.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28804,
    "c": 0.14552,
    "h": 271.7
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#171971
secondary
#A7A43D
accent
#E53FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171971

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

Preview Lab → · Contrast checker → · Palette generator →

#171971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva