#3A1981#3A1981

#3A1981 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.159 H 289.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3A1981
RGBrgb(58, 25, 129)
HSLhsl(259, 68%, 30%)
HSVhsv(259, 81%, 51%)
CMYKcmyk(55%, 80.6%, 0%, 49.4%)
CIE-LABlab(20.75, 41.28, -52.30)
CIE-LCHlch(20.75, 66.63, 308.28°)
OKLaboklab(33.55% 0.0524 -0.1504)
OKLCHoklch(33.55% 0.159 289.2)
XYZxyz(6.0538, 3.1795, 21.0593)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1981 #608119
analogous
#192C81 #3A1981 #6E1981
triadic
#3A1981 #813A19 #19813A
tetradic
#3A1981 #81192C #608119 #19816E
square
#3A1981 #81192C #608119 #19816E
split-complementary
#3A1981 #816E19 #2C8119
monochromatic
#0C051A #230F4E #3A1981 #5123B4 #6D3BD9

Accessibility & contrast

On white

12.84
#3A1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1981
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1981#FFFFFF#000000##FFFFFF
##3A19811.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#1E374D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1981;
/* rgb */ color: rgb(58, 25, 129);
/* oklch */ color: oklch(33.6% 0.159 289.2);
Tailwind
colors: {
  custom: {
    50: '#795aa7',
    500: '#3a1981',
    950: '#000000',
  },
}
SCSS
$custom: #3a1981;
$custom-light: #795aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1981",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 259.038,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33551,
    "c": 0.15928,
    "h": 289.2
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#3A1981
secondary
#90B541
accent
#EA3DB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1981

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

Preview Lab → · Contrast checker → · Palette generator →

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