#581D9D#581D9D

#581D9D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.188 H 297.9°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#581D9D
RGBrgb(88, 29, 157)
HSLhsl(268, 69%, 36%)
HSVhsv(268, 82%, 62%)
CMYKcmyk(43.9%, 81.5%, 0%, 38.4%)
CIE-LABlab(27.81, 51.44, -57.95)
CIE-LCHlch(27.81, 77.49, 311.59°)
OKLaboklab(40.13% 0.088 -0.166)
OKLCHoklch(40.13% 0.188 297.9)
XYZxyz(10.5481, 5.3876, 32.3759)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D9D #629D1D
analogous
#1D229D #581D9D #981D9D
triadic
#581D9D #9D581D #1D9D58
tetradic
#581D9D #9D1D22 #629D1D #1D9D98
square
#581D9D #9D1D22 #629D1D #1D9D98
split-complementary
#581D9D #9D981D #229D1D
monochromatic
#1E0A36 #3B1369 #581D9D #7527D1 #9555E0

Accessibility & contrast

On white

10.11
#581D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#581D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D9D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D9D#FFFFFF#000000##FFFFFF
##581D9D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#46415E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581d9d;
/* rgb */ color: rgb(88, 29, 157);
/* oklch */ color: oklch(40.1% 0.188 297.9);
Tailwind
colors: {
  custom: {
    50: '#8e61bb',
    500: '#581d9d',
    950: '#000000',
  },
}
SCSS
$custom: #581d9d;
$custom-light: #8e61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#581d9d",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 267.656,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.18785,
    "h": 297.9
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#581D9D
secondary
#8FC353
accent
#EC3C9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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