#3E1881#3E1881

#3E1881 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 291.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3E1881
RGBrgb(62, 24, 129)
HSLhsl(262, 69%, 30%)
HSVhsv(262, 81%, 51%)
CMYKcmyk(51.9%, 81.4%, 0%, 49.4%)
CIE-LABlab(21.06, 42.32, -51.77)
CIE-LCHlch(21.06, 66.86, 309.27°)
OKLaboklab(33.88% 0.0596 -0.1487)
OKLCHoklch(33.88% 0.16 291.9)
XYZxyz(6.2746, 3.2621, 21.0637)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1881 #5B8118
analogous
#182781 #3E1881 #721881
triadic
#3E1881 #813E18 #18813E
tetradic
#3E1881 #811827 #5B8118 #188172
square
#3E1881 #811827 #5B8118 #188172
split-complementary
#3E1881 #817218 #278118
monochromatic
#0C051A #250E4D #3E1881 #5722B5 #7339DA

Accessibility & contrast

On white

12.71
#3E1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1881
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1881#FFFFFF#000000##FFFFFF
##3E18811.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#27364D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1881;
/* rgb */ color: rgb(62, 24, 129);
/* oklch */ color: oklch(33.9% 0.160 291.9);
Tailwind
colors: {
  custom: {
    50: '#7b5aa7',
    500: '#3e1881',
    950: '#000000',
  },
}
SCSS
$custom: #3e1881;
$custom-light: #7b5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1881",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 261.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.3388,
    "c": 0.16021,
    "h": 291.9
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#3E1881
secondary
#8BB540
accent
#EB3CAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1881

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

Preview Lab → · Contrast checker → · Palette generator →

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