#3A1581#3A1581

#3A1581 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.163 H 289.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1581
RGBrgb(58, 21, 129)
HSLhsl(261, 72%, 29%)
HSVhsv(261, 84%, 51%)
CMYKcmyk(55%, 83.7%, 0%, 49.4%)
CIE-LABlab(20.13, 43.09, -53.33)
CIE-LCHlch(20.13, 68.56, 308.94°)
OKLaboklab(33.12% 0.0552 -0.1534)
OKLCHoklch(33.12% 0.163 289.8)
XYZxyz(5.9744, 3.0206, 21.0329)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1581 #5C8115
analogous
#152681 #3A1581 #701581
triadic
#3A1581 #813A15 #15813A
tetradic
#3A1581 #811526 #5C8115 #158170
square
#3A1581 #811526 #5C8115 #158170
split-complementary
#3A1581 #817015 #268115
monochromatic
#0C041A #220C4C #3A1581 #521EB6 #6D33DE

Accessibility & contrast

On white

13.09
#3A1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1581
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1581#FFFFFF#000000##FFFFFF
##3A15811.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#1E354C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1581;
/* rgb */ color: rgb(58, 21, 129);
/* oklch */ color: oklch(33.1% 0.163 289.8);
Tailwind
colors: {
  custom: {
    50: '#7958a7',
    500: '#3a1581',
    950: '#000000',
  },
}
SCSS
$custom: #3a1581;
$custom-light: #7958a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1581",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 260.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33119,
    "c": 0.163,
    "h": 289.8
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#3A1581
secondary
#8CB63C
accent
#EF39B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1581

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

Preview Lab → · Contrast checker → · Palette generator →

#3A1581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva