#581D8A#581D8A

#581D8A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.168 H 303.8°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#581D8A
RGBrgb(88, 29, 138)
HSLhsl(272, 65%, 33%)
HSVhsv(272, 79%, 54%)
CMYKcmyk(36.2%, 79%, 0%, 45.9%)
CIE-LABlab(26.12, 46.75, -49.00)
CIE-LCHlch(26.12, 67.73, 313.66°)
OKLaboklab(38.43% 0.0936 -0.1397)
OKLCHoklch(38.43% 0.168 303.8)
XYZxyz(9.0502, 4.7884, 24.4873)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D8A #4F8A1D
analogous
#221D8A #581D8A #8A1D85
triadic
#581D8A #8A581D #1D8A58
tetradic
#581D8A #8A221D #4F8A1D #1D858A
square
#581D8A #8A221D #4F8A1D #1D858A
split-complementary
#581D8A #858A1D #1D8A22
monochromatic
#180825 #381257 #581D8A #7828BD #9749D9

Accessibility & contrast

On white

10.73
#581D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581D8A
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D8A#FFFFFF#000000##FFFFFF
##581D8A1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#4E3953
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581d8a;
/* rgb */ color: rgb(88, 29, 138);
/* oklch */ color: oklch(38.4% 0.168 303.8);
Tailwind
colors: {
  custom: {
    50: '#8c60ad',
    500: '#581d8a',
    950: '#000000',
  },
}
SCSS
$custom: #581d8a;
$custom-light: #8c60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#581d8a",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 272.477,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38431,
    "c": 0.16812,
    "h": 303.8
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#581D8A
secondary
#7DBB48
accent
#E8408D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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