#3B1584#3B1584

#3B1584 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.166 H 289.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#3B1584
RGBrgb(59, 21, 132)
HSLhsl(261, 73%, 30%)
HSVhsv(261, 84%, 52%)
CMYKcmyk(55.3%, 84.1%, 0%, 48.2%)
CIE-LABlab(20.56, 44.05, -54.50)
CIE-LCHlch(20.56, 70.08, 308.95°)
OKLaboklab(33.54% 0.0558 -0.1568)
OKLCHoklch(33.54% 0.166 289.6)
XYZxyz(6.2354, 3.1318, 22.1013)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1584 #5E8415
analogous
#152684 #3B1584 #731584
triadic
#3B1584 #843B15 #15843B
tetradic
#3B1584 #841526 #5E8415 #158473
square
#3B1584 #841526 #5E8415 #158473
split-complementary
#3B1584 #847315 #268415
monochromatic
#0C041A #230D4F #3B1584 #531DB9 #6F35DF

Accessibility & contrast

On white

12.91
#3B1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3B1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1584
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1584#FFFFFF#000000##FFFFFF
##3B15841.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#1E374E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b1584;
/* rgb */ color: rgb(59, 21, 132);
/* oklch */ color: oklch(33.5% 0.166 289.6);
Tailwind
colors: {
  custom: {
    50: '#7a59a9',
    500: '#3b1584',
    950: '#000000',
  },
}
SCSS
$custom: #3b1584;
$custom-light: #7a59a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1584",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 260.541,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33544,
    "c": 0.16638,
    "h": 289.6
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#3B1584
secondary
#8EB93C
accent
#EF39B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B1584

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

Preview Lab → · Contrast checker → · Palette generator →

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