#581F9D#581F9D

#581F9D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.186 H 297.7°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#581F9D
RGBrgb(88, 31, 157)
HSLhsl(267, 67%, 37%)
HSVhsv(267, 80%, 62%)
CMYKcmyk(43.9%, 80.3%, 0%, 38.4%)
CIE-LABlab(28.08, 50.64, -57.51)
CIE-LCHlch(28.08, 76.63, 311.37°)
OKLaboklab(40.32% 0.0865 -0.1647)
OKLCHoklch(40.32% 0.186 297.7)
XYZxyz(10.5987, 5.4888, 32.3928)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F9D #649D1F
analogous
#1F259D #581F9D #971F9D
triadic
#581F9D #9D581F #1F9D58
tetradic
#581F9D #9D1F25 #649D1F #1F9D97
square
#581F9D #9D1F25 #649D1F #1F9D97
split-complementary
#581F9D #9D971F #259D1F
monochromatic
#1F0B37 #3B156A #581F9D #7529D0 #9558DE

Accessibility & contrast

On white

10.01
#581F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#581F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F9D
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F9D#FFFFFF#000000##FFFFFF
##581F9D1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#46425E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581f9d;
/* rgb */ color: rgb(88, 31, 157);
/* oklch */ color: oklch(40.3% 0.186 297.7);
Tailwind
colors: {
  custom: {
    50: '#8e62bb',
    500: '#581f9d',
    950: '#000000',
  },
}
SCSS
$custom: #581f9d;
$custom-light: #8e62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#581f9d",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 267.143,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.18599,
    "h": 297.7
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#581F9D
secondary
#91C256
accent
#EA3E9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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