#3E15A1#3E15A1

#3E15A1 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 37.0% C 0.198 H 284.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#3E15A1
RGBrgb(62, 21, 161)
HSLhsl(258, 77%, 36%)
HSVhsv(258, 87%, 63%)
CMYKcmyk(61.5%, 87%, 0%, 36.9%)
CIE-LABlab(24.11, 52.34, -66.61)
CIE-LCHlch(24.11, 84.71, 308.16°)
OKLaboklab(37% 0.0495 -0.192)
OKLCHoklch(37% 0.198 284.5)
XYZxyz(8.6858, 4.1331, 34.0514)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E15A1 #78A115
analogous
#1532A1 #3E15A1 #8415A1
triadic
#3E15A1 #A13E15 #15A13E
tetradic
#3E15A1 #A11532 #78A115 #15A184
square
#3E15A1 #A11532 #78A115 #15A184
split-complementary
#3E15A1 #A18415 #32A115
monochromatic
#140735 #290E6B #3E15A1 #531CD7 #7749E7

Accessibility & contrast

On white

11.50
#3E15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E15A1
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E15A1#FFFFFF#000000##FFFFFF
##3E15A11.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e15a1;
/* rgb */ color: rgb(62, 21, 161);
/* oklch */ color: oklch(37.0% 0.198 284.5);
Tailwind
colors: {
  custom: {
    50: '#815bbe',
    500: '#3e15a1',
    950: '#000000',
  },
}
SCSS
$custom: #3e15a1;
$custom-light: #815bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3e15a1",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 257.571,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36999,
    "c": 0.19826,
    "h": 284.5
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#3E15A1
secondary
#A3C849
accent
#F334BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3E15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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