#3E1A79#3E1A79

#3E1A79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.149 H 294.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3E1A79
RGBrgb(62, 26, 121)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 47%)
CMYKcmyk(48.8%, 78.5%, 0%, 52.5%)
CIE-LABlab(20.61, 39.12, -47.43)
CIE-LCHlch(20.61, 61.48, 309.52°)
OKLaboklab(33.32% 0.0605 -0.136)
OKLCHoklch(33.32% 0.149 294)
XYZxyz(5.8062, 3.1432, 18.3862)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A79 #55791A
analogous
#1A2679 #3E1A79 #6E1A79
triadic
#3E1A79 #793E1A #1A793E
tetradic
#3E1A79 #791A26 #55791A #1A796E
square
#3E1A79 #791A26 #55791A #1A796E
split-complementary
#3E1A79 #796E1A #26791A
monochromatic
#0D0519 #240F47 #3E1A79 #5825AB #7439D4

Accessibility & contrast

On white

12.89
#3E1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A79
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A79#FFFFFF#000000##FFFFFF
##3E1A791.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1a79;
/* rgb */ color: rgb(62, 26, 121);
/* oklch */ color: oklch(33.3% 0.149 294.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ba1',
    500: '#3e1a79',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a79;
$custom-light: #7a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a79",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 262.737,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33323,
    "c": 0.14884,
    "h": 294
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#3E1A79
secondary
#84AD41
accent
#E840A8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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