#3E1E96#3E1E96

#3E1E96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.179 H 285.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3E1E96
RGBrgb(62, 30, 150)
HSLhsl(256, 67%, 35%)
HSVhsv(256, 80%, 59%)
CMYKcmyk(58.7%, 80%, 0%, 41.2%)
CIE-LABlab(24.17, 45.54, -59.75)
CIE-LCHlch(24.17, 75.13, 307.31°)
OKLaboklab(36.69% 0.0486 -0.1721)
OKLCHoklch(36.69% 0.179 285.8)
XYZxyz(7.9542, 4.1542, 29.2310)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E96 #76961E
analogous
#1E3A96 #3E1E96 #7A1E96
triadic
#3E1E96 #963E1E #1E963E
tetradic
#3E1E96 #961E3A #76961E #1E967A
square
#3E1E96 #961E3A #76961E #1E967A
split-complementary
#3E1E96 #967A1E #3A961E
monochromatic
#140A30 #291463 #3E1E96 #5328C9 #7752DC

Accessibility & contrast

On white

11.47
#3E1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E96
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E96#FFFFFF#000000##FFFFFF
##3E1E961.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#0F415A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e1e96;
/* rgb */ color: rgb(62, 30, 150);
/* oklch */ color: oklch(36.7% 0.179 285.8);
Tailwind
colors: {
  custom: {
    50: '#7e5fb6',
    500: '#3e1e96',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e96;
$custom-light: #7e5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e96",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 256,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36691,
    "c": 0.17884,
    "h": 285.8
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#3E1E96
secondary
#A2BF50
accent
#EA3EBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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