#3E1581#3E1581

#3E1581 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.163 H 292.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3E1581
RGBrgb(62, 21, 129)
HSLhsl(263, 72%, 29%)
HSVhsv(263, 84%, 51%)
CMYKcmyk(51.9%, 83.7%, 0%, 49.4%)
CIE-LABlab(20.62, 43.62, -52.50)
CIE-LCHlch(20.62, 68.26, 309.72°)
OKLaboklab(33.57% 0.0618 -0.1508)
OKLCHoklch(33.57% 0.163 292.3)
XYZxyz(6.2161, 3.1452, 21.0442)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1581 #588115
analogous
#152281 #3E1581 #741581
triadic
#3E1581 #813E15 #15813E
tetradic
#3E1581 #811522 #588115 #158174
square
#3E1581 #811522 #588115 #158174
split-complementary
#3E1581 #817415 #228115
monochromatic
#0D041A #250C4C #3E1581 #571EB6 #7433DE

Accessibility & contrast

On white

12.89
#3E1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1581
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1581#FFFFFF#000000##FFFFFF
##3E15811.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#27354C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1581;
/* rgb */ color: rgb(62, 21, 129);
/* oklch */ color: oklch(33.6% 0.163 292.3);
Tailwind
colors: {
  custom: {
    50: '#7c59a7',
    500: '#3e1581',
    950: '#000000',
  },
}
SCSS
$custom: #3e1581;
$custom-light: #7c59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1581",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 262.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33569,
    "c": 0.16301,
    "h": 292.3
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#3E1581
secondary
#88B63C
accent
#EF39AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1581

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

Preview Lab → · Contrast checker → · Palette generator →

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