#3B1A96#3B1A96

#3B1A96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.183 H 284.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#3B1A96
RGBrgb(59, 26, 150)
HSLhsl(256, 70%, 35%)
HSVhsv(256, 83%, 59%)
CMYKcmyk(60.7%, 82.7%, 0%, 41.2%)
CIE-LABlab(23.24, 47.00, -61.31)
CIE-LCHlch(23.24, 77.25, 307.47°)
OKLaboklab(35.97% 0.0463 -0.1767)
OKLCHoklch(35.97% 0.183 284.7)
XYZxyz(7.6764, 3.8701, 29.1907)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1A96 #75961A
analogous
#1A3796 #3B1A96 #791A96
triadic
#3B1A96 #963B1A #1A963B
tetradic
#3B1A96 #961A37 #75961A #1A9679
square
#3B1A96 #961A37 #75961A #1A9679
split-complementary
#3B1A96 #96791A #37961A
monochromatic
#12082E #261162 #3B1A96 #5023CA #724BE0

Accessibility & contrast

On white

11.84
#3B1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3B1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1A96
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1A96#FFFFFF#000000##FFFFFF
##3B1A961.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3b1a96;
/* rgb */ color: rgb(59, 26, 150);
/* oklch */ color: oklch(36.0% 0.183 284.7);
Tailwind
colors: {
  custom: {
    50: '#7d5cb6',
    500: '#3b1a96',
    950: '#000000',
  },
}
SCSS
$custom: #3b1a96;
$custom-light: #7d5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1a96",
  "rgb": {
    "r": 59,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 255.968,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.18266,
    "h": 284.7
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#3B1A96
secondary
#A2C24A
accent
#ED3BBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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