#581B8F#581B8F

#581B8F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.175 H 302.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#581B8F
RGBrgb(88, 27, 143)
HSLhsl(272, 68%, 33%)
HSVhsv(272, 81%, 56%)
CMYKcmyk(38.5%, 81.1%, 0%, 43.9%)
CIE-LABlab(26.28, 48.77, -51.85)
CIE-LCHlch(26.28, 71.18, 313.24°)
OKLaboklab(38.67% 0.0939 -0.148)
OKLCHoklch(38.67% 0.175 302.4)
XYZxyz(9.3732, 4.8417, 26.4220)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B8F #528F1B
analogous
#1E1B8F #581B8F #8F1B8C
triadic
#581B8F #8F581B #1B8F58
tetradic
#581B8F #8F1E1B #528F1B #1B8C8F
square
#581B8F #8F1E1B #528F1B #1B8C8F
split-complementary
#581B8F #8C8F1B #1B8F1E
monochromatic
#190828 #38115C #581B8F #7825C2 #9648DC

Accessibility & contrast

On white

10.67
#581B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B8F
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B8F#FFFFFF#000000##FFFFFF
##581B8F1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#4C3B55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581b8f;
/* rgb */ color: rgb(88, 27, 143);
/* oklch */ color: oklch(38.7% 0.175 302.4);
Tailwind
colors: {
  custom: {
    50: '#8d60b1',
    500: '#581b8f',
    950: '#000000',
  },
}
SCSS
$custom: #581b8f;
$custom-light: #8d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581b8f",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 271.552,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.17531,
    "h": 302.4
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#581B8F
secondary
#80BE48
accent
#EB3D8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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