#3E1B78#3E1B78

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

Color values

HEX#3E1B78
RGBrgb(62, 27, 120)
HSLhsl(263, 63%, 29%)
HSVhsv(263, 78%, 47%)
CMYKcmyk(48.3%, 77.5%, 0%, 52.9%)
CIE-LABlab(20.69, 38.34, -46.66)
CIE-LCHlch(20.69, 60.39, 309.41°)
OKLaboklab(33.35% 0.0598 -0.1337)
OKLCHoklch(33.35% 0.147 294.1)
XYZxyz(5.7678, 3.1639, 18.0725)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B78 #55781B
analogous
#1B2778 #3E1B78 #6D1B78
triadic
#3E1B78 #783E1B #1B783E
tetradic
#3E1B78 #781B27 #55781B #1B786D
square
#3E1B78 #781B27 #55781B #1B786D
split-complementary
#3E1B78 #786D1B #27781B
monochromatic
#0D0619 #241046 #3E1B78 #5826AA #743BD3

Accessibility & contrast

On white

12.86
#3E1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1B78
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B78#FFFFFF#000000##FFFFFF
##3E1B781.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#2D3448
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1b78;
/* rgb */ color: rgb(62, 27, 120);
/* oklch */ color: oklch(33.4% 0.147 294.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ba0',
    500: '#3e1b78',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b78;
$custom-light: #7a5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b78",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 262.581,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3335,
    "c": 0.14652,
    "h": 294.1
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#3E1B78
secondary
#84AC43
accent
#E641A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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