#581D8E#581D8E

#581D8E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.172 H 302.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#581D8E
RGBrgb(88, 29, 142)
HSLhsl(271, 66%, 34%)
HSVhsv(271, 80%, 56%)
CMYKcmyk(38%, 79.6%, 0%, 44.3%)
CIE-LABlab(26.47, 47.73, -50.93)
CIE-LCHlch(26.47, 69.80, 313.14°)
OKLaboklab(38.78% 0.0925 -0.1453)
OKLCHoklch(38.78% 0.172 302.5)
XYZxyz(9.3452, 4.9064, 26.0406)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D8E #538E1D
analogous
#1F1D8E #581D8E #8E1D8B
triadic
#581D8E #8E581D #1D8E58
tetradic
#581D8E #8E1F1D #538E1D #1D8B8E
square
#581D8E #8E1F1D #538E1D #1D8B8E
split-complementary
#581D8E #8B8E1D #1D8E1F
monochromatic
#190828 #39135B #581D8E #7727C1 #964BDA

Accessibility & contrast

On white

10.60
#581D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#581D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D8E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D8E#FFFFFF#000000##FFFFFF
##581D8E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#4C3B55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581d8e;
/* rgb */ color: rgb(88, 29, 142);
/* oklch */ color: oklch(38.8% 0.172 302.5);
Tailwind
colors: {
  custom: {
    50: '#8d60b0',
    500: '#581d8e',
    950: '#000000',
  },
}
SCSS
$custom: #581d8e;
$custom-light: #8d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#581d8e",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 271.327,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38778,
    "c": 0.17228,
    "h": 302.5
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#581D8E
secondary
#81BD4A
accent
#E93F90
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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