#3E1AA1#3E1AA1

#3E1AA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.195 H 284.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3E1AA1
RGBrgb(62, 26, 161)
HSLhsl(256, 72%, 37%)
HSVhsv(256, 84%, 63%)
CMYKcmyk(61.5%, 83.9%, 0%, 36.9%)
CIE-LABlab(24.75, 50.43, -65.54)
CIE-LCHlch(24.75, 82.70, 307.58°)
OKLaboklab(37.44% 0.0472 -0.1889)
OKLCHoklch(37.44% 0.195 284)
XYZxyz(8.7870, 4.3355, 34.0851)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1AA1 #7DA11A
analogous
#1A3AA1 #3E1AA1 #821AA1
triadic
#3E1AA1 #A13E1A #1AA13E
tetradic
#3E1AA1 #A11A3A #7DA11A #1AA182
square
#3E1AA1 #A11A3A #7DA11A #1AA182
split-complementary
#3E1AA1 #A1821A #3AA11A
monochromatic
#150938 #2A116C #3E1AA1 #5223D6 #7952E3

Accessibility & contrast

On white

11.25
#3E1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1AA1
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1AA1#FFFFFF#000000##FFFFFF
##3E1AA11.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e1aa1;
/* rgb */ color: rgb(62, 26, 161);
/* oklch */ color: oklch(37.4% 0.195 284.0);
Tailwind
colors: {
  custom: {
    50: '#815dbe',
    500: '#3e1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #3e1aa1;
$custom-light: #815dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1aa1",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 256,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3744,
    "c": 0.19474,
    "h": 284
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#3E1AA1
secondary
#A7C651
accent
#EF39BE
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3E1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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