#3E1BA1#3E1BA1

#3E1BA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.194 H 283.9°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#3E1BA1
RGBrgb(62, 27, 161)
HSLhsl(256, 71%, 37%)
HSVhsv(256, 83%, 63%)
CMYKcmyk(61.5%, 83.2%, 0%, 36.9%)
CIE-LABlab(24.89, 50.02, -65.31)
CIE-LCHlch(24.89, 82.26, 307.45°)
OKLaboklab(37.54% 0.0467 -0.1883)
OKLCHoklch(37.54% 0.194 283.9)
XYZxyz(8.8096, 4.3806, 34.0926)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1BA1 #7EA11B
analogous
#1B3BA1 #3E1BA1 #811BA1
triadic
#3E1BA1 #A13E1B #1BA13E
tetradic
#3E1BA1 #A11B3B #7EA11B #1BA181
square
#3E1BA1 #A11B3B #7EA11B #1BA181
split-complementary
#3E1BA1 #A1811B #3BA11B
monochromatic
#160938 #2A126D #3E1BA1 #5224D5 #7954E2

Accessibility & contrast

On white

11.19
#3E1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3E1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1BA1
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1BA1#FFFFFF#000000##FFFFFF
##3E1BA11.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1ba1;
/* rgb */ color: rgb(62, 27, 161);
/* oklch */ color: oklch(37.5% 0.194 283.9);
Tailwind
colors: {
  custom: {
    50: '#815ebe',
    500: '#3e1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #3e1ba1;
$custom-light: #815ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1ba1",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 255.672,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.19398,
    "h": 283.9
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#3E1BA1
secondary
#A7C552
accent
#EE3ABF
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3E1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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