#171579#171579

#171579 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.160 H 271.5°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#171579
RGBrgb(23, 21, 121)
HSLhsl(241, 70%, 28%)
HSVhsv(241, 83%, 47%)
CMYKcmyk(81%, 82.6%, 0%, 52.5%)
CIE-LABlab(16.00, 37.03, -55.16)
CIE-LCHlch(16.00, 66.44, 303.88°)
OKLaboklab(29.19% 0.0041 -0.1597)
OKLCHoklch(29.19% 0.16 271.5)
XYZxyz(4.0715, 2.0985, 18.2759)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171579 #777915
analogous
#154579 #171579 #491579
triadic
#171579 #791715 #157917
tetradic
#171579 #791545 #777915 #157949
square
#171579 #791545 #777915 #157949
split-complementary
#171579 #794915 #457915
monochromatic
#05051A #0D0C45 #171579 #211EAD #312EDB

Accessibility & contrast

On white

14.79
#171579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171579
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171579#FFFFFF#000000##FFFFFF
##1715791.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002377
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171579;
/* rgb */ color: rgb(23, 21, 121);
/* oklch */ color: oklch(29.2% 0.160 271.5);
Tailwind
colors: {
  custom: {
    50: '#6855a1',
    500: '#171579',
    950: '#000000',
  },
}
SCSS
$custom: #171579;
$custom-light: #6855a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171579",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 241.2,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29191,
    "c": 0.15972,
    "h": 271.5
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#171579
secondary
#ACAF3B
accent
#ED3BEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171579

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

Preview Lab → · Contrast checker → · Palette generator →

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