#171578#171578

#171578 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.158 H 271.6°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#171578
RGBrgb(23, 21, 120)
HSLhsl(241, 70%, 28%)
HSVhsv(241, 83%, 47%)
CMYKcmyk(80.8%, 82.5%, 0%, 52.9%)
CIE-LABlab(15.87, 36.69, -54.72)
CIE-LCHlch(15.87, 65.89, 303.84°)
OKLaboklab(29.07% 0.0043 -0.1584)
OKLCHoklch(29.07% 0.158 271.6)
XYZxyz(4.0105, 2.0741, 17.9546)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171578 #767815
analogous
#154578 #171578 #481578
triadic
#171578 #781715 #157817
tetradic
#171578 #781545 #767815 #157848
square
#171578 #781545 #767815 #157848
split-complementary
#171578 #784815 #457815
monochromatic
#05051A #0D0C44 #171578 #211EAC #312DDA

Accessibility & contrast

On white

14.84
#171578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171578
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171578#FFFFFF#000000##FFFFFF
##1715781.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7B
Deuteranopia (green-blind)
#002276
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171578;
/* rgb */ color: rgb(23, 21, 120);
/* oklch */ color: oklch(29.1% 0.158 271.6);
Tailwind
colors: {
  custom: {
    50: '#6855a0',
    500: '#171578',
    950: '#000000',
  },
}
SCSS
$custom: #171578;
$custom-light: #6855a0;
$custom-dark: #000000;
JSON
{
  "hex": "#171578",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 241.212,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29068,
    "c": 0.15846,
    "h": 271.6
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#171578
secondary
#ABAE3B
accent
#ED3BE9
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171578

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

Preview Lab → · Contrast checker → · Palette generator →

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