#581B8D#581B8D

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

Color values

HEX#581B8D
RGBrgb(88, 27, 141)
HSLhsl(272, 68%, 33%)
HSVhsv(272, 81%, 55%)
CMYKcmyk(37.6%, 80.9%, 0%, 44.7%)
CIE-LABlab(26.10, 48.28, -50.90)
CIE-LCHlch(26.10, 70.16, 313.49°)
OKLaboklab(38.5% 0.0945 -0.1452)
OKLCHoklch(38.5% 0.173 303)
XYZxyz(9.2230, 4.7817, 25.6312)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B8D #508D1B
analogous
#1F1B8D #581B8D #8D1B89
triadic
#581B8D #8D581B #1B8D58
tetradic
#581B8D #8D1F1B #508D1B #1B898D
square
#581B8D #8D1F1B #508D1B #1B898D
split-complementary
#581B8D #898D1B #1B8D1F
monochromatic
#180726 #38115A #581B8D #7825C0 #9647DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##581B8D#FFFFFF#000000##FFFFFF
##581B8D1.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)
#003D90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#4D3A54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581b8d;
/* rgb */ color: rgb(88, 27, 141);
/* oklch */ color: oklch(38.5% 0.173 303.0);
Tailwind
colors: {
  custom: {
    50: '#8d5faf',
    500: '#581b8d',
    950: '#000000',
  },
}
SCSS
$custom: #581b8d;
$custom-light: #8d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#581b8d",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 272.105,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38497,
    "c": 0.17326,
    "h": 303
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#581B8D
secondary
#7EBD46
accent
#EB3D8E
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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