#3E1584#3E1584

#3E1584 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.166 H 291.4°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3E1584
RGBrgb(62, 21, 132)
HSLhsl(262, 73%, 30%)
HSVhsv(262, 84%, 52%)
CMYKcmyk(53%, 84.1%, 0%, 48.2%)
CIE-LABlab(20.93, 44.44, -53.89)
CIE-LCHlch(20.93, 69.85, 309.51°)
OKLaboklab(33.88% 0.0607 -0.1549)
OKLCHoklch(33.88% 0.166 291.4)
XYZxyz(6.4184, 3.2261, 22.1098)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1584 #5B8415
analogous
#152484 #3E1584 #751584
triadic
#3E1584 #843E15 #15843E
tetradic
#3E1584 #841524 #5B8415 #158475
square
#3E1584 #841524 #5B8415 #158475
split-complementary
#3E1584 #847515 #248415
monochromatic
#0C041A #250D4F #3E1584 #571DB9 #7335DF

Accessibility & contrast

On white

12.76
#3E1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1584
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1584#FFFFFF#000000##FFFFFF
##3E15841.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#25364E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1584;
/* rgb */ color: rgb(62, 21, 132);
/* oklch */ color: oklch(33.9% 0.166 291.4);
Tailwind
colors: {
  custom: {
    50: '#7c59a9',
    500: '#3e1584',
    950: '#000000',
  },
}
SCSS
$custom: #3e1584;
$custom-light: #7c59a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1584",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 262.162,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33878,
    "c": 0.16635,
    "h": 291.4
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#3E1584
secondary
#8BB93C
accent
#EF39AC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1584

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

Preview Lab → · Contrast checker → · Palette generator →

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