#3E1C79#3E1C79

#3E1C79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.147 H 293.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3E1C79
RGBrgb(62, 28, 121)
HSLhsl(262, 62%, 29%)
HSVhsv(262, 77%, 47%)
CMYKcmyk(48.8%, 76.9%, 0%, 52.5%)
CIE-LABlab(20.96, 38.12, -46.85)
CIE-LCHlch(20.96, 60.40, 309.13°)
OKLaboklab(33.57% 0.0586 -0.1343)
OKLCHoklch(33.57% 0.147 293.6)
XYZxyz(5.8521, 3.2349, 18.4015)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1C79 #57791C
analogous
#1C2979 #3E1C79 #6D1C79
triadic
#3E1C79 #793E1C #1C793E
tetradic
#3E1C79 #791C29 #57791C #1C796D
square
#3E1C79 #791C29 #57791C #1C796D
split-complementary
#3E1C79 #796D1C #29791C
monochromatic
#0D0619 #251047 #3E1C79 #5728AB #743DD2

Accessibility & contrast

On white

12.75
#3E1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1C79
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1C79#FFFFFF#000000##FFFFFF
##3E1C791.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#2C3549
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1c79;
/* rgb */ color: rgb(62, 28, 121);
/* oklch */ color: oklch(33.6% 0.147 293.6);
Tailwind
colors: {
  custom: {
    50: '#7a5ca1',
    500: '#3e1c79',
    950: '#000000',
  },
}
SCSS
$custom: #3e1c79;
$custom-light: #7a5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1c79",
  "rgb": {
    "r": 62,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 261.935,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33571,
    "c": 0.14657,
    "h": 293.6
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#3E1C79
secondary
#87AD44
accent
#E542AA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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