#171572#171572

#171572 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.151 H 272.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#171572
RGBrgb(23, 21, 114)
HSLhsl(241, 69%, 26%)
HSVhsv(241, 82%, 45%)
CMYKcmyk(79.8%, 81.6%, 0%, 55.3%)
CIE-LABlab(15.13, 34.62, -52.08)
CIE-LCHlch(15.13, 62.54, 303.62°)
OKLaboklab(28.34% 0.0057 -0.1507)
OKLCHoklch(28.34% 0.151 272.2)
XYZxyz(3.6578, 1.9330, 16.0967)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171572 #707215
analogous
#154272 #171572 #461572
triadic
#171572 #721715 #157217
tetradic
#171572 #721542 #707215 #157246
square
#171572 #721542 #707215 #157246
split-complementary
#171572 #724615 #427215
monochromatic
#05051A #0D0B3E #171572 #211FA6 #2D2AD8

Accessibility & contrast

On white

15.14
#171572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171572
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171572#FFFFFF#000000##FFFFFF
##1715721.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171572;
/* rgb */ color: rgb(23, 21, 114);
/* oklch */ color: oklch(28.3% 0.151 272.2);
Tailwind
colors: {
  custom: {
    50: '#66549c',
    500: '#171572',
    950: '#000000',
  },
}
SCSS
$custom: #171572;
$custom-light: #66549c;
$custom-dark: #000000;
JSON
{
  "hex": "#171572",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 241.29,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28335,
    "c": 0.15084,
    "h": 272.2
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#171572
secondary
#A6A83B
accent
#EC3CE8
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171572

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

Preview Lab → · Contrast checker → · Palette generator →

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