#3E1C81#3E1C81

#3E1C81 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.156 H 291.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#3E1C81
RGBrgb(62, 28, 129)
HSLhsl(260, 64%, 31%)
HSVhsv(260, 78%, 51%)
CMYKcmyk(51.9%, 78.3%, 0%, 49.4%)
CIE-LABlab(21.72, 40.42, -50.68)
CIE-LCHlch(21.72, 64.83, 308.57°)
OKLaboklab(34.34% 0.0564 -0.1456)
OKLCHoklch(34.34% 0.156 291.2)
XYZxyz(6.3632, 3.4394, 21.0932)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1C81 #5F811C
analogous
#1C2C81 #3E1C81 #701C81
triadic
#3E1C81 #813E1C #1C813E
tetradic
#3E1C81 #811C2C #5F811C #1C8170
square
#3E1C81 #811C2C #5F811C #1C8170
split-complementary
#3E1C81 #81701C #2C811C
monochromatic
#0E061C #26114F #3E1C81 #5627B3 #7342D6

Accessibility & contrast

On white

12.44
#3E1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3E1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1C81
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1C81#FFFFFF#000000##FFFFFF
##3E1C811.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1c81;
/* rgb */ color: rgb(62, 28, 129);
/* oklch */ color: oklch(34.3% 0.156 291.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ca7',
    500: '#3e1c81',
    950: '#000000',
  },
}
SCSS
$custom: #3e1c81;
$custom-light: #7b5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1c81",
  "rgb": {
    "r": 62,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 260.198,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3434,
    "c": 0.15612,
    "h": 291.2
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#3E1C81
secondary
#8FB444
accent
#E740AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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