#581A9F#581A9F

#581A9F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.192 H 297.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#581A9F
RGBrgb(88, 26, 159)
HSLhsl(268, 72%, 36%)
HSVhsv(268, 84%, 62%)
CMYKcmyk(44.7%, 83.6%, 0%, 37.6%)
CIE-LABlab(27.62, 53.04, -59.49)
CIE-LCHlch(27.62, 79.70, 311.72°)
OKLaboklab(40.05% 0.0894 -0.1704)
OKLCHoklch(40.05% 0.192 297.7)
XYZxyz(10.6503, 5.3165, 33.2592)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A9F #619F1A
analogous
#1A1F9F #581A9F #9B1A9F
triadic
#581A9F #9F581A #1A9F58
tetradic
#581A9F #9F1A1F #619F1A #1A9F9B
square
#581A9F #9F1A1F #619F1A #1A9F9B
split-complementary
#581A9F #9F9B1A #1F9F1A
monochromatic
#1E0936 #3B116A #581A9F #7523D4 #9551E3

Accessibility & contrast

On white

10.18
#581A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#581A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A9F
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A9F#FFFFFF#000000##FFFFFF
##581A9F1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#45415E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581a9f;
/* rgb */ color: rgb(88, 26, 159);
/* oklch */ color: oklch(40.1% 0.192 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f60bc',
    500: '#581a9f',
    950: '#000000',
  },
}
SCSS
$custom: #581a9f;
$custom-light: #8f60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#581a9f",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 267.97,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40052,
    "c": 0.19248,
    "h": 297.7
  },
  "luminance": 0.05317
}

Semantic roles & 50–950 ramp

primary
#581A9F
secondary
#8EC550
accent
#EF399A
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #581A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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