#581D9E#581D9E

#581D9E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.189 H 297.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#581D9E
RGBrgb(88, 29, 158)
HSLhsl(267, 69%, 37%)
HSVhsv(267, 82%, 62%)
CMYKcmyk(44.3%, 81.6%, 0%, 38%)
CIE-LABlab(27.90, 51.68, -58.41)
CIE-LCHlch(27.90, 77.99, 311.50°)
OKLaboklab(40.22% 0.0877 -0.1673)
OKLCHoklch(40.22% 0.189 297.7)
XYZxyz(10.6338, 5.4219, 32.8274)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D9E #639E1D
analogous
#1D229E #581D9E #991D9E
triadic
#581D9E #9E581D #1D9E58
tetradic
#581D9E #9E1D22 #639E1D #1D9E99
square
#581D9E #9E1D22 #639E1D #1D9E99
split-complementary
#581D9E #9E991D #229E1D
monochromatic
#1E0A37 #3B146A #581D9E #7526D2 #9556E0

Accessibility & contrast

On white

10.07
#581D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581D9E
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D9E#FFFFFF#000000##FFFFFF
##581D9E1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#46425E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581d9e;
/* rgb */ color: rgb(88, 29, 158);
/* oklch */ color: oklch(40.2% 0.189 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f61bc',
    500: '#581d9e',
    950: '#000000',
  },
}
SCSS
$custom: #581d9e;
$custom-light: #8f61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#581d9e",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 267.442,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40221,
    "c": 0.18888,
    "h": 297.7
  },
  "luminance": 0.05422
}

Semantic roles & 50–950 ramp

primary
#581D9E
secondary
#90C354
accent
#EC3C9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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