#3E1879#3E1879

#3E1879 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.151 H 294.3°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#3E1879
RGBrgb(62, 24, 121)
HSLhsl(264, 67%, 28%)
HSVhsv(264, 80%, 47%)
CMYKcmyk(48.8%, 80.2%, 0%, 52.5%)
CIE-LABlab(20.27, 40.08, -47.98)
CIE-LCHlch(20.27, 62.52, 309.88°)
OKLaboklab(33.09% 0.0622 -0.1376)
OKLCHoklch(33.09% 0.151 294.3)
XYZxyz(5.7635, 3.0577, 18.3720)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1879 #537918
analogous
#182279 #3E1879 #6E1879
triadic
#3E1879 #793E18 #18793E
tetradic
#3E1879 #791822 #537918 #18796E
square
#3E1879 #791822 #537918 #18796E
split-complementary
#3E1879 #796E18 #227918
monochromatic
#0D051A #240E46 #3E1879 #5822AC #7435D7

Accessibility & contrast

On white

13.03
#3E1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1879
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1879#FFFFFF#000000##FFFFFF
##3E18791.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#2C3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1879;
/* rgb */ color: rgb(62, 24, 121);
/* oklch */ color: oklch(33.1% 0.151 294.3);
Tailwind
colors: {
  custom: {
    50: '#7a5aa1',
    500: '#3e1879',
    950: '#000000',
  },
}
SCSS
$custom: #3e1879;
$custom-light: #7a5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1879",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 263.505,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33088,
    "c": 0.151,
    "h": 294.3
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#3E1879
secondary
#82AE3F
accent
#EA3EA6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1879

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

Preview Lab → · Contrast checker → · Palette generator →

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