#3E1E78#3E1E78

#3E1E78 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.143 H 293.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3E1E78
RGBrgb(62, 30, 120)
HSLhsl(261, 60%, 29%)
HSVhsv(261, 75%, 47%)
CMYKcmyk(48.3%, 75%, 0%, 52.9%)
CIE-LABlab(21.24, 36.79, -45.76)
CIE-LCHlch(21.24, 58.71, 308.80°)
OKLaboklab(33.74% 0.057 -0.1311)
OKLCHoklch(33.74% 0.143 293.5)
XYZxyz(5.8401, 3.3086, 18.0966)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E78 #58781E
analogous
#1E2B78 #3E1E78 #6B1E78
triadic
#3E1E78 #783E1E #1E783E
tetradic
#3E1E78 #781E2B #58781E #1E786B
square
#3E1E78 #781E2B #58781E #1E786B
split-complementary
#3E1E78 #786B1E #2B781E
monochromatic
#0D0618 #251247 #3E1E78 #572AA9 #7441CF

Accessibility & contrast

On white

12.64
#3E1E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E78
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E78#FFFFFF#000000##FFFFFF
##3E1E781.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#2D3549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1e78;
/* rgb */ color: rgb(62, 30, 120);
/* oklch */ color: oklch(33.7% 0.143 293.5);
Tailwind
colors: {
  custom: {
    50: '#795da0',
    500: '#3e1e78',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e78;
$custom-light: #795da0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e78",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 261.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33739,
    "c": 0.14297,
    "h": 293.5
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#3E1E78
secondary
#88AC46
accent
#E345AB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1E78

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

Preview Lab → · Contrast checker → · Palette generator →

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