#3B1580#3B1580

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

Color values

HEX#3B1580
RGBrgb(59, 21, 128)
HSLhsl(261, 72%, 29%)
HSVhsv(261, 84%, 50%)
CMYKcmyk(53.9%, 83.6%, 0%, 49.8%)
CIE-LABlab(20.14, 42.94, -52.66)
CIE-LCHlch(20.14, 67.95, 309.19°)
OKLaboklab(33.13% 0.0572 -0.1514)
OKLCHoklch(33.13% 0.162 290.7)
XYZxyz(5.9670, 3.0244, 20.6873)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1580 #5A8015
analogous
#152580 #3B1580 #711580
triadic
#3B1580 #803B15 #15803B
tetradic
#3B1580 #801525 #5A8015 #158071
square
#3B1580 #801525 #5A8015 #158071
split-complementary
#3B1580 #807115 #258015
monochromatic
#0C041A #230C4B #3B1580 #531EB5 #6F32DD

Accessibility & contrast

On white

13.08
#3B1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3B1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1580
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1580#FFFFFF#000000##FFFFFF
##3B15801.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#22354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b1580;
/* rgb */ color: rgb(59, 21, 128);
/* oklch */ color: oklch(33.1% 0.162 290.7);
Tailwind
colors: {
  custom: {
    50: '#7a58a6',
    500: '#3b1580',
    950: '#000000',
  },
}
SCSS
$custom: #3b1580;
$custom-light: #7a58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1580",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 261.308,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33125,
    "c": 0.16185,
    "h": 290.7
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#3B1580
secondary
#8AB53C
accent
#EF39AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B1580

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

Preview Lab → · Contrast checker → · Palette generator →

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