#581D7B#581D7B

#581D7B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.153 H 309.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#581D7B
RGBrgb(88, 29, 123)
HSLhsl(278, 62%, 30%)
HSVhsv(278, 76%, 48%)
CMYKcmyk(28.5%, 76.4%, 0%, 51.8%)
CIE-LABlab(24.90, 43.17, -41.55)
CIE-LCHlch(24.90, 59.92, 316.10°)
OKLaboklab(37.19% 0.0969 -0.1178)
OKLCHoklch(37.19% 0.153 309.4)
XYZxyz(8.0383, 4.3837, 19.1577)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D7B #407B1D
analogous
#291D7B #581D7B #7B1D6F
triadic
#581D7B #7B581D #1D7B58
tetradic
#581D7B #7B291D #407B1D #1D6F7B
square
#581D7B #7B291D #407B1D #1D6F7B
split-complementary
#581D7B #6F7B1D #1D7B29
monochromatic
#120619 #351149 #581D7B #7B29AD #9C40D2

Accessibility & contrast

On white

11.19
#581D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D7B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D7B#FFFFFF#000000##FFFFFF
##581D7B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#53334A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581d7b;
/* rgb */ color: rgb(88, 29, 123);
/* oklch */ color: oklch(37.2% 0.153 309.4);
Tailwind
colors: {
  custom: {
    50: '#8b5fa2',
    500: '#581d7b',
    950: '#000000',
  },
}
SCSS
$custom: #581d7b;
$custom-light: #8b5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#581d7b",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 277.66,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37188,
    "c": 0.15253,
    "h": 309.4
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#581D7B
secondary
#6CAF45
accent
#E5437F
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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