#3E2D81#3E2D81

#3E2D81 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.8% C 0.135 H 287.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#3E2D81
RGBrgb(62, 45, 129)
HSLhsl(252, 48%, 34%)
HSVhsv(252, 65%, 51%)
CMYKcmyk(51.9%, 65.1%, 0%, 49.4%)
CIE-LABlab(25.22, 30.79, -44.98)
CIE-LCHlch(25.22, 54.51, 304.39°)
OKLaboklab(36.84% 0.0397 -0.1289)
OKLCHoklch(36.84% 0.135 287.1)
XYZxyz(6.8863, 4.4856, 21.2676)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2D81 #70812D
analogous
#2D4681 #3E2D81 #682D81
triadic
#3E2D81 #813E2D #2D813E
tetradic
#3E2D81 #812D46 #70812D #2D8168
square
#3E2D81 #812D46 #70812D #2D8168
split-complementary
#3E2D81 #81682D #46812D
monochromatic
#120D26 #281D54 #3E2D81 #543DAE #7661C8

Accessibility & contrast

On white

11.07
#3E2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2D81
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2D81#FFFFFF#000000##FFFFFF
##3E2D811.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#264152
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2d81;
/* rgb */ color: rgb(62, 45, 129);
/* oklch */ color: oklch(36.8% 0.135 287.1);
Tailwind
colors: {
  custom: {
    50: '#7a67a6',
    500: '#3e2d81',
    950: '#000000',
  },
}
SCSS
$custom: #3e2d81;
$custom-light: #7a67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2d81",
  "rgb": {
    "r": 62,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 252.143,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36836,
    "c": 0.13485,
    "h": 287.1
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#3E2D81
secondary
#9DAE5C
accent
#D850BC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #3E2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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