#581D88#581D88

#581D88 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.166 H 304.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#581D88
RGBrgb(88, 29, 136)
HSLhsl(273, 65%, 32%)
HSVhsv(273, 79%, 53%)
CMYKcmyk(35.3%, 78.7%, 0%, 46.7%)
CIE-LABlab(25.95, 46.27, -48.03)
CIE-LCHlch(25.95, 66.69, 313.93°)
OKLaboklab(38.26% 0.0941 -0.1368)
OKLCHoklch(38.26% 0.166 304.5)
XYZxyz(8.9068, 4.7310, 23.7317)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D88 #4D881D
analogous
#231D88 #581D88 #881D83
triadic
#581D88 #88581D #1D8858
tetradic
#581D88 #88231D #4D881D #1D8388
square
#581D88 #88231D #4D881D #1D8388
split-complementary
#581D88 #83881D #1D8823
monochromatic
#170723 #371256 #581D88 #7928BA #9748D8

Accessibility & contrast

On white

10.79
#581D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#581D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D88
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D88#FFFFFF#000000##FFFFFF
##581D881.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#4F3852
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581d88;
/* rgb */ color: rgb(88, 29, 136);
/* oklch */ color: oklch(38.3% 0.166 304.5);
Tailwind
colors: {
  custom: {
    50: '#8c60ab',
    500: '#581d88',
    950: '#000000',
  },
}
SCSS
$custom: #581d88;
$custom-light: #8c60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#581d88",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 273.084,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3826,
    "c": 0.16604,
    "h": 304.5
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#581D88
secondary
#7ABA47
accent
#E8408B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581D88

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

Preview Lab → · Contrast checker → · Palette generator →

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