#3E1D9B#3E1D9B

#3E1D9B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.186 H 284.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3E1D9B
RGBrgb(62, 29, 155)
HSLhsl(256, 68%, 36%)
HSVhsv(256, 81%, 61%)
CMYKcmyk(60%, 81.3%, 0%, 39.2%)
CIE-LABlab(24.54, 47.44, -62.22)
CIE-LCHlch(24.54, 78.24, 307.33°)
OKLaboklab(37.1% 0.0476 -0.1793)
OKLCHoklch(37.1% 0.186 284.9)
XYZxyz(8.3406, 4.2689, 31.3885)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D9B #7A9B1D
analogous
#1D3B9B #3E1D9B #7D1D9B
triadic
#3E1D9B #9B3E1D #1D9B3E
tetradic
#3E1D9B #9B1D3B #7A9B1D #1D9B7D
square
#3E1D9B #9B1D3B #7A9B1D #1D9B7D
split-complementary
#3E1D9B #9B7D1D #3B9B1D
monochromatic
#150A34 #291367 #3E1D9B #5327CF #7853DF

Accessibility & contrast

On white

11.33
#3E1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D9B
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D9B#FFFFFF#000000##FFFFFF
##3E1D9B1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#03435D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1d9b;
/* rgb */ color: rgb(62, 29, 155);
/* oklch */ color: oklch(37.1% 0.186 284.9);
Tailwind
colors: {
  custom: {
    50: '#7f5eba',
    500: '#3e1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d9b;
$custom-light: #7f5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d9b",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 255.714,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37102,
    "c": 0.18551,
    "h": 284.9
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#3E1D9B
secondary
#A5C252
accent
#EB3CBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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