#171581#171581

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

Color values

HEX#171581
RGBrgb(23, 21, 129)
HSLhsl(241, 72%, 29%)
HSVhsv(241, 84%, 51%)
CMYKcmyk(82.2%, 83.7%, 0%, 49.4%)
CIE-LABlab(17.00, 39.73, -58.59)
CIE-LCHlch(17.00, 70.79, 304.14°)
OKLaboklab(30.18% 0.0023 -0.1696)
OKLCHoklch(30.18% 0.17 270.8)
XYZxyz(4.5826, 2.3029, 20.9676)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171581 #7F8115
analogous
#154981 #171581 #4D1581
triadic
#171581 #811715 #158117
tetradic
#171581 #811549 #7F8115 #15814D
square
#171581 #811549 #7F8115 #15814D
split-complementary
#171581 #814D15 #498115
monochromatic
#05041A #0E0C4C #171581 #201EB6 #3633DE

Accessibility & contrast

On white

14.38
#171581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171581
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171581#FFFFFF#000000##FFFFFF
##1715811.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00247F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171581;
/* rgb */ color: rgb(23, 21, 129);
/* oklch */ color: oklch(30.2% 0.170 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a55a7',
    500: '#171581',
    950: '#000000',
  },
}
SCSS
$custom: #171581;
$custom-light: #6a55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171581",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 241.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30184,
    "c": 0.16962,
    "h": 270.8
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171581

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

Preview Lab → · Contrast checker → · Palette generator →

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