#3B1996#3B1996

#3B1996 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.183 H 284.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#3B1996
RGBrgb(59, 25, 150)
HSLhsl(256, 71%, 34%)
HSVhsv(256, 83%, 59%)
CMYKcmyk(60.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(23.09, 47.43, -61.55)
CIE-LCHlch(23.09, 77.71, 307.62°)
OKLaboklab(35.87% 0.0468 -0.1774)
OKLCHoklch(35.87% 0.183 284.8)
XYZxyz(7.6546, 3.8266, 29.1835)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1996 #749619
analogous
#193696 #3B1996 #7A1996
triadic
#3B1996 #963B19 #19963B
tetradic
#3B1996 #961936 #749619 #19967A
square
#3B1996 #961936 #749619 #19967A
split-complementary
#3B1996 #967A19 #369619
monochromatic
#12082D #261062 #3B1996 #5022CA #7249E1

Accessibility & contrast

On white

11.90
#3B1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1996
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1996#FFFFFF#000000##FFFFFF
##3B19961.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1996;
/* rgb */ color: rgb(59, 25, 150);
/* oklch */ color: oklch(35.9% 0.183 284.8);
Tailwind
colors: {
  custom: {
    50: '#7d5cb6',
    500: '#3b1996',
    950: '#000000',
  },
}
SCSS
$custom: #3b1996;
$custom-light: #7d5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1996",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 256.32,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35865,
    "c": 0.18348,
    "h": 284.8
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#3B1996
secondary
#A1C249
accent
#EE3ABD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B1996

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

Preview Lab → · Contrast checker → · Palette generator →

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