#3E1D81#3E1D81

#3E1D81 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.155 H 291.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1D81
RGBrgb(62, 29, 129)
HSLhsl(260, 63%, 31%)
HSVhsv(260, 78%, 51%)
CMYKcmyk(51.9%, 77.5%, 0%, 49.4%)
CIE-LABlab(21.90, 39.92, -50.39)
CIE-LCHlch(21.90, 64.29, 308.38°)
OKLaboklab(34.46% 0.0556 -0.1447)
OKLCHoklch(34.46% 0.155 291)
XYZxyz(6.3873, 3.4876, 21.1012)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D81 #60811D
analogous
#1D2E81 #3E1D81 #701D81
triadic
#3E1D81 #813E1D #1D813E
tetradic
#3E1D81 #811D2E #60811D #1D8170
square
#3E1D81 #811D2E #60811D #1D8170
split-complementary
#3E1D81 #81701D #2E811D
monochromatic
#0E071D #26124F #3E1D81 #5628B3 #7344D5

Accessibility & contrast

On white

12.37
#3E1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D81
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D81#FFFFFF#000000##FFFFFF
##3E1D811.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#27384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1d81;
/* rgb */ color: rgb(62, 29, 129);
/* oklch */ color: oklch(34.5% 0.155 291.0);
Tailwind
colors: {
  custom: {
    50: '#7b5da7',
    500: '#3e1d81',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d81;
$custom-light: #7b5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d81",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 259.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34464,
    "c": 0.15504,
    "h": 291
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#3E1D81
secondary
#90B446
accent
#E641B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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