#3B1981#3B1981

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

Color values

HEX#3B1981
RGBrgb(59, 25, 129)
HSLhsl(260, 68%, 30%)
HSVhsv(260, 81%, 51%)
CMYKcmyk(54.3%, 80.6%, 0%, 49.4%)
CIE-LABlab(20.87, 41.42, -52.11)
CIE-LCHlch(20.87, 66.56, 308.48°)
OKLaboklab(33.66% 0.054 -0.1498)
OKLCHoklch(33.66% 0.159 289.8)
XYZxyz(6.1126, 3.2098, 21.0621)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1981 #5F8119
analogous
#192B81 #3B1981 #6F1981
triadic
#3B1981 #813B19 #19813B
tetradic
#3B1981 #81192B #5F8119 #19816F
square
#3B1981 #81192B #5F8119 #19816F
split-complementary
#3B1981 #816F19 #2B8119
monochromatic
#0C051A #240F4E #3B1981 #5223B4 #6F3BD9

Accessibility & contrast

On white

12.79
#3B1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1981
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1981#FFFFFF#000000##FFFFFF
##3B19811.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#21374D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b1981;
/* rgb */ color: rgb(59, 25, 129);
/* oklch */ color: oklch(33.7% 0.159 289.8);
Tailwind
colors: {
  custom: {
    50: '#7a5aa7',
    500: '#3b1981',
    950: '#000000',
  },
}
SCSS
$custom: #3b1981;
$custom-light: #7a5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1981",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 259.615,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33659,
    "c": 0.15924,
    "h": 289.8
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#3B1981
secondary
#8FB541
accent
#EA3DB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1981

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

Preview Lab → · Contrast checker → · Palette generator →

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