#3E1B96#3E1B96

#3E1B96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.182 H 286.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#3E1B96
RGBrgb(62, 27, 150)
HSLhsl(257, 69%, 35%)
HSVhsv(257, 82%, 59%)
CMYKcmyk(58.7%, 82%, 0%, 41.2%)
CIE-LABlab(23.70, 46.91, -60.53)
CIE-LCHlch(23.70, 76.58, 307.77°)
OKLaboklab(36.36% 0.0505 -0.1743)
OKLCHoklch(36.36% 0.182 286.1)
XYZxyz(7.8819, 4.0095, 29.2068)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B96 #73961B
analogous
#1B3696 #3E1B96 #7C1B96
triadic
#3E1B96 #963E1B #1B963E
tetradic
#3E1B96 #961B36 #73961B #1B967C
square
#3E1B96 #961B36 #73961B #1B967C
split-complementary
#3E1B96 #967C1B #36961B
monochromatic
#13082E #291262 #3E1B96 #5324CA #764DDF

Accessibility & contrast

On white

11.65
#3E1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B96
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B96#FFFFFF#000000##FFFFFF
##3E1B961.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#104059
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1b96;
/* rgb */ color: rgb(62, 27, 150);
/* oklch */ color: oklch(36.4% 0.182 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f5db6',
    500: '#3e1b96',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b96;
$custom-light: #7f5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b96",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 257.073,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36363,
    "c": 0.18151,
    "h": 286.1
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#3E1B96
secondary
#A0C14C
accent
#EC3BBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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