#171571#171571

#171571 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.150 H 272.3°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#171571
RGBrgb(23, 21, 113)
HSLhsl(241, 69%, 26%)
HSVhsv(241, 81%, 44%)
CMYKcmyk(79.6%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.01, 34.27, -51.63)
CIE-LCHlch(15.01, 61.97, 303.57°)
OKLaboklab(28.21% 0.0059 -0.1494)
OKLCHoklch(28.21% 0.15 272.3)
XYZxyz(3.6011, 1.9104, 15.7985)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171571 #6F7115
analogous
#154171 #171571 #451571
triadic
#171571 #711715 #157117
tetradic
#171571 #711541 #6F7115 #157145
square
#171571 #711541 #6F7115 #157145
split-complementary
#171571 #714515 #417115
monochromatic
#05051A #0C0B3D #171571 #221FA5 #2D29D7

Accessibility & contrast

On white

15.19
#171571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171571
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171571#FFFFFF#000000##FFFFFF
##1715711.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171571;
/* rgb */ color: rgb(23, 21, 113);
/* oklch */ color: oklch(28.2% 0.150 272.3);
Tailwind
colors: {
  custom: {
    50: '#66549b',
    500: '#171571',
    950: '#000000',
  },
}
SCSS
$custom: #171571;
$custom-light: #66549b;
$custom-dark: #000000;
JSON
{
  "hex": "#171571",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 241.304,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28214,
    "c": 0.14955,
    "h": 272.3
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#171571
secondary
#A5A73B
accent
#EB3CE8
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171571

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

Preview Lab → · Contrast checker → · Palette generator →

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