#3A1481#3A1481

#3A1481 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.164 H 289.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#3A1481
RGBrgb(58, 20, 129)
HSLhsl(261, 73%, 29%)
HSVhsv(261, 84%, 51%)
CMYKcmyk(55%, 84.5%, 0%, 49.4%)
CIE-LABlab(19.98, 43.51, -53.56)
CIE-LCHlch(19.98, 69.01, 309.08°)
OKLaboklab(33.02% 0.0559 -0.154)
OKLCHoklch(33.02% 0.164 289.9)
XYZxyz(5.9564, 2.9846, 21.0268)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1481 #5B8114
analogous
#142581 #3A1481 #711481
triadic
#3A1481 #813A14 #14813A
tetradic
#3A1481 #811425 #5B8114 #148171
square
#3A1481 #811425 #5B8114 #148171
split-complementary
#3A1481 #817114 #258114
monochromatic
#0C041A #220C4C #3A1481 #521CB6 #6D30DF

Accessibility & contrast

On white

13.15
#3A1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1481
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1481#FFFFFF#000000##FFFFFF
##3A14811.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1481;
/* rgb */ color: rgb(58, 20, 129);
/* oklch */ color: oklch(33.0% 0.164 289.9);
Tailwind
colors: {
  custom: {
    50: '#7958a7',
    500: '#3a1481',
    950: '#000000',
  },
}
SCSS
$custom: #3a1481;
$custom-light: #7958a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1481",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 260.917,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33019,
    "c": 0.16386,
    "h": 289.9
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#3A1481
secondary
#8BB63B
accent
#F038B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1481

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

Preview Lab → · Contrast checker → · Palette generator →

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