#581F9B#581F9B

#581F9B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.184 H 298.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#581F9B
RGBrgb(88, 31, 155)
HSLhsl(268, 67%, 36%)
HSVhsv(268, 80%, 61%)
CMYKcmyk(43.2%, 80%, 0%, 39.2%)
CIE-LABlab(27.90, 50.14, -56.58)
CIE-LCHlch(27.90, 75.60, 311.55°)
OKLaboklab(40.14% 0.0871 -0.162)
OKLCHoklch(40.14% 0.184 298.3)
XYZxyz(10.4294, 5.4211, 31.5009)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F9B #629B1F
analogous
#1F249B #581F9B #961F9B
triadic
#581F9B #9B581F #1F9B58
tetradic
#581F9B #9B1F24 #629B1F #1F9B96
square
#581F9B #9B1F24 #629B1F #1F9B96
split-complementary
#581F9B #9B961F #249B1F
monochromatic
#1E0B35 #3B1568 #581F9B #7529CE #9557DD

Accessibility & contrast

On white

10.08
#581F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F9B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F9B#FFFFFF#000000##FFFFFF
##581F9B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#47415D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581f9b;
/* rgb */ color: rgb(88, 31, 155);
/* oklch */ color: oklch(40.1% 0.184 298.3);
Tailwind
colors: {
  custom: {
    50: '#8e62b9',
    500: '#581f9b',
    950: '#000000',
  },
}
SCSS
$custom: #581f9b;
$custom-light: #8e62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#581f9b",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 267.581,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40135,
    "c": 0.18389,
    "h": 298.3
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#581F9B
secondary
#8FC155
accent
#EA3E9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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