#3E1A78#3E1A78

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

Color values

HEX#3E1A78
RGBrgb(62, 26, 120)
HSLhsl(263, 64%, 29%)
HSVhsv(263, 78%, 47%)
CMYKcmyk(48.3%, 78.3%, 0%, 52.9%)
CIE-LABlab(20.51, 38.84, -46.94)
CIE-LCHlch(20.51, 60.93, 309.60°)
OKLaboklab(33.23% 0.0607 -0.1346)
OKLCHoklch(33.23% 0.148 294.3)
XYZxyz(5.7452, 3.1188, 18.0649)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A78 #54781A
analogous
#1A2578 #3E1A78 #6D1A78
triadic
#3E1A78 #783E1A #1A783E
tetradic
#3E1A78 #781A25 #54781A #1A786D
square
#3E1A78 #781A25 #54781A #1A786D
split-complementary
#3E1A78 #786D1A #25781A
monochromatic
#0D0519 #240F46 #3E1A78 #5825AA #7438D4

Accessibility & contrast

On white

12.93
#3E1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A78
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A78#FFFFFF#000000##FFFFFF
##3E1A781.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#2D3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1a78;
/* rgb */ color: rgb(62, 26, 120);
/* oklch */ color: oklch(33.2% 0.148 294.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ba0',
    500: '#3e1a78',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a78;
$custom-light: #7a5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a78",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 262.979,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33227,
    "c": 0.14766,
    "h": 294.3
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#3E1A78
secondary
#83AC41
accent
#E740A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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