#581D8F#581D8F

#581D8F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.173 H 302.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#581D8F
RGBrgb(88, 29, 143)
HSLhsl(271, 66%, 34%)
HSVhsv(271, 80%, 56%)
CMYKcmyk(38.5%, 79.7%, 0%, 43.9%)
CIE-LABlab(26.55, 47.97, -51.40)
CIE-LCHlch(26.55, 70.31, 313.02°)
OKLaboklab(38.87% 0.0922 -0.1467)
OKLCHoklch(38.87% 0.173 302.1)
XYZxyz(9.4206, 4.9366, 26.4378)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D8F #548F1D
analogous
#1F1D8F #581D8F #8F1D8D
triadic
#581D8F #8F581D #1D8F58
tetradic
#581D8F #8F1F1D #548F1D #1D8D8F
square
#581D8F #8F1F1D #548F1D #1D8D8F
split-complementary
#581D8F #8D8F1D #1D8F1F
monochromatic
#190829 #39135C #581D8F #7727C2 #964CDB

Accessibility & contrast

On white

10.57
#581D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#581D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D8F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D8F#FFFFFF#000000##FFFFFF
##581D8F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#4C3B56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581d8f;
/* rgb */ color: rgb(88, 29, 143);
/* oklch */ color: oklch(38.9% 0.173 302.1);
Tailwind
colors: {
  custom: {
    50: '#8d60b1',
    500: '#581d8f',
    950: '#000000',
  },
}
SCSS
$custom: #581d8f;
$custom-light: #8d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581d8f",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 271.053,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.17333,
    "h": 302.1
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#581D8F
secondary
#82BD4B
accent
#E93F91
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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