#581F9C#581F9C

#581F9C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.185 H 298.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#581F9C
RGBrgb(88, 31, 156)
HSLhsl(267, 67%, 37%)
HSVhsv(267, 80%, 61%)
CMYKcmyk(43.6%, 80.1%, 0%, 38.8%)
CIE-LABlab(27.99, 50.39, -57.05)
CIE-LCHlch(27.99, 76.12, 311.46°)
OKLaboklab(40.23% 0.0868 -0.1633)
OKLCHoklch(40.23% 0.185 298)
XYZxyz(10.5137, 5.4548, 31.9450)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F9C #639C1F
analogous
#1F259C #581F9C #971F9C
triadic
#581F9C #9C581F #1F9C58
tetradic
#581F9C #9C1F25 #639C1F #1F9C97
square
#581F9C #9C1F25 #639C1F #1F9C97
split-complementary
#581F9C #9C971F #259C1F
monochromatic
#1E0B36 #3B1569 #581F9C #7529CF #9558DE

Accessibility & contrast

On white

10.04
#581F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#581F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F9C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F9C#FFFFFF#000000##FFFFFF
##581F9C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#46425E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581f9c;
/* rgb */ color: rgb(88, 31, 156);
/* oklch */ color: oklch(40.2% 0.185 298.0);
Tailwind
colors: {
  custom: {
    50: '#8e62ba',
    500: '#581f9c',
    950: '#000000',
  },
}
SCSS
$custom: #581f9c;
$custom-light: #8e62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#581f9c",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 267.36,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40226,
    "c": 0.18494,
    "h": 298
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#581F9C
secondary
#90C155
accent
#EA3E9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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