#581A88#581A88

#581A88 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.169 H 304.9°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#581A88
RGBrgb(88, 26, 136)
HSLhsl(274, 68%, 32%)
HSVhsv(274, 81%, 53%)
CMYKcmyk(35.3%, 80.9%, 0%, 46.7%)
CIE-LABlab(25.54, 47.47, -48.71)
CIE-LCHlch(25.54, 68.02, 314.27°)
OKLaboklab(37.97% 0.0967 -0.1388)
OKLCHoklch(37.97% 0.169 304.9)
XYZxyz(8.8368, 4.5911, 23.7084)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A88 #4A881A
analogous
#211A88 #581A88 #881A81
triadic
#581A88 #88581A #1A8858
tetradic
#581A88 #88211A #4A881A #1A8188
square
#581A88 #88211A #4A881A #1A8188
split-complementary
#581A88 #81881A #1A8821
monochromatic
#160621 #371055 #581A88 #7924BB #9842DB

Accessibility & contrast

On white

10.95
#581A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#581A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A88
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A88#FFFFFF#000000##FFFFFF
##581A881.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#4F3751
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581a88;
/* rgb */ color: rgb(88, 26, 136);
/* oklch */ color: oklch(38.0% 0.169 304.9);
Tailwind
colors: {
  custom: {
    50: '#8c5fac',
    500: '#581a88',
    950: '#000000',
  },
}
SCSS
$custom: #581a88;
$custom-light: #8c5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#581a88",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 273.818,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37968,
    "c": 0.16917,
    "h": 304.9
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#581A88
secondary
#77BB43
accent
#EB3D89
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581A88

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

Preview Lab → · Contrast checker → · Palette generator →

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