#3E1781#3E1781

#3E1781 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.161 H 292.0°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#3E1781
RGBrgb(62, 23, 129)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 82%, 51%)
CMYKcmyk(51.9%, 82.2%, 0%, 49.4%)
CIE-LABlab(20.91, 42.76, -52.02)
CIE-LCHlch(20.91, 67.34, 309.42°)
OKLaboklab(33.77% 0.0604 -0.1494)
OKLCHoklch(33.77% 0.161 292)
XYZxyz(6.2543, 3.2217, 21.0569)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1781 #5A8117
analogous
#172581 #3E1781 #731781
triadic
#3E1781 #813E17 #17813E
tetradic
#3E1781 #811725 #5A8117 #178173
square
#3E1781 #811725 #5A8117 #178173
split-complementary
#3E1781 #817317 #258117
monochromatic
#0C051A #250E4D #3E1781 #5720B5 #7337DB

Accessibility & contrast

On white

12.77
#3E1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1781
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1781#FFFFFF#000000##FFFFFF
##3E17811.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1781;
/* rgb */ color: rgb(62, 23, 129);
/* oklch */ color: oklch(33.8% 0.161 292.0);
Tailwind
colors: {
  custom: {
    50: '#7b5aa7',
    500: '#3e1781',
    950: '#000000',
  },
}
SCSS
$custom: #3e1781;
$custom-light: #7b5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1781",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 262.075,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33773,
    "c": 0.16117,
    "h": 292
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#3E1781
secondary
#8AB53E
accent
#ED3BAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1781

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

Preview Lab → · Contrast checker → · Palette generator →

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