#171371#171371

#171371 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.151 H 272.5°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#171371
RGBrgb(23, 19, 113)
HSLhsl(243, 71%, 26%)
HSVhsv(243, 83%, 44%)
CMYKcmyk(79.6%, 83.2%, 0%, 55.7%)
CIE-LABlab(14.62, 35.39, -52.27)
CIE-LCHlch(14.62, 63.12, 304.10°)
OKLaboklab(27.94% 0.0067 -0.1513)
OKLCHoklch(27.94% 0.151 272.5)
XYZxyz(3.5659, 1.8398, 15.7868)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171371 #6D7113
analogous
#133E71 #171371 #461371
triadic
#171371 #711713 #137117
tetradic
#171371 #71133E #6D7113 #137146
square
#171371 #71133E #6D7113 #137146
split-complementary
#171371 #714613 #3E7113
monochromatic
#05041A #0C0A3D #171371 #221CA5 #2C25DA

Accessibility & contrast

On white

15.35
#171371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171371
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171371#FFFFFF#000000##FFFFFF
##1713711.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171371;
/* rgb */ color: rgb(23, 19, 113);
/* oklch */ color: oklch(27.9% 0.151 272.5);
Tailwind
colors: {
  custom: {
    50: '#66539b',
    500: '#171371',
    950: '#000000',
  },
}
SCSS
$custom: #171371;
$custom-light: #66539b;
$custom-dark: #000000;
JSON
{
  "hex": "#171371",
  "rgb": {
    "r": 23,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 242.553,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.27943,
    "c": 0.15141,
    "h": 272.5
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#171371
secondary
#A3A838
accent
#EE3AE6
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #171371

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

Preview Lab → · Contrast checker → · Palette generator →

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