#581D8B#581D8B

#581D8B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.169 H 303.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#581D8B
RGBrgb(88, 29, 139)
HSLhsl(272, 65%, 33%)
HSVhsv(272, 79%, 55%)
CMYKcmyk(36.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(26.21, 47.00, -49.48)
CIE-LCHlch(26.21, 68.24, 313.52°)
OKLaboklab(38.52% 0.0933 -0.1411)
OKLCHoklch(38.52% 0.169 303.5)
XYZxyz(9.1230, 4.8175, 24.8703)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D8B #508B1D
analogous
#211D8B #581D8B #8B1D87
triadic
#581D8B #8B581D #1D8B58
tetradic
#581D8B #8B211D #508B1D #1D878B
square
#581D8B #8B211D #508B1D #1D878B
split-complementary
#581D8B #878B1D #1D8B21
monochromatic
#180826 #381258 #581D8B #7828BE #9649D9

Accessibility & contrast

On white

10.69
#581D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#581D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D8B
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D8B#FFFFFF#000000##FFFFFF
##581D8B1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#4E3A53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581d8b;
/* rgb */ color: rgb(88, 29, 139);
/* oklch */ color: oklch(38.5% 0.169 303.5);
Tailwind
colors: {
  custom: {
    50: '#8c60ae',
    500: '#581d8b',
    950: '#000000',
  },
}
SCSS
$custom: #581d8b;
$custom-light: #8c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581d8b",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 272.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.16916,
    "h": 303.5
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#581D8B
secondary
#7EBB49
accent
#E83F8E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581D8B

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

Preview Lab → · Contrast checker → · Palette generator →

#581D8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva