#171580#171580

#171580 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.168 H 270.8°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#171580
RGBrgb(23, 21, 128)
HSLhsl(241, 72%, 29%)
HSVhsv(241, 84%, 50%)
CMYKcmyk(82%, 83.6%, 0%, 49.8%)
CIE-LABlab(16.88, 39.40, -58.17)
CIE-LCHlch(16.88, 70.25, 304.11°)
OKLaboklab(30.06% 0.0025 -0.1684)
OKLCHoklch(30.06% 0.168 270.8)
XYZxyz(4.5165, 2.2765, 20.6193)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171580 #7E8015
analogous
#154980 #171580 #4C1580
triadic
#171580 #801715 #158017
tetradic
#171580 #801549 #7E8015 #15804C
square
#171580 #801549 #7E8015 #15804C
split-complementary
#171580 #804C15 #498015
monochromatic
#05041A #0E0C4B #171580 #201EB5 #3532DD

Accessibility & contrast

On white

14.43
#171580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171580
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171580#FFFFFF#000000##FFFFFF
##1715801.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00247E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171580;
/* rgb */ color: rgb(23, 21, 128);
/* oklch */ color: oklch(30.1% 0.168 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a55a6',
    500: '#171580',
    950: '#000000',
  },
}
SCSS
$custom: #171580;
$custom-light: #6a55a6;
$custom-dark: #000000;
JSON
{
  "hex": "#171580",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 241.121,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30059,
    "c": 0.1684,
    "h": 270.8
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#171580
secondary
#B3B53C
accent
#EF39EB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171580

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

Preview Lab → · Contrast checker → · Palette generator →

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