#3E1A8E#3E1A8E

#3E1A8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.173 H 288.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#3E1A8E
RGBrgb(62, 26, 142)
HSLhsl(259, 69%, 33%)
HSVhsv(259, 82%, 56%)
CMYKcmyk(56.3%, 81.7%, 0%, 44.3%)
CIE-LABlab(22.71, 45.08, -57.22)
CIE-LCHlch(22.71, 72.84, 308.23°)
OKLaboklab(35.42% 0.0538 -0.1647)
OKLCHoklch(35.42% 0.173 288.1)
XYZxyz(7.2370, 3.7155, 25.9218)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A8E #6A8E1A
analogous
#1A308E #3E1A8E #781A8E
triadic
#3E1A8E #8E3E1A #1A8E3E
tetradic
#3E1A8E #8E1A30 #6A8E1A #1A8E78
square
#3E1A8E #8E1A30 #6A8E1A #1A8E78
split-complementary
#3E1A8E #8E781A #308E1A
monochromatic
#110727 #27115A #3E1A8E #5523C2 #7445DD

Accessibility & contrast

On white

12.05
#3E1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A8E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A8E#FFFFFF#000000##FFFFFF
##3E1A8E1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#1C3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1a8e;
/* rgb */ color: rgb(62, 26, 142);
/* oklch */ color: oklch(35.4% 0.173 288.1);
Tailwind
colors: {
  custom: {
    50: '#7d5cb0',
    500: '#3e1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a8e;
$custom-light: #7d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a8e",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 258.621,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.17325,
    "h": 288.1
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#3E1A8E
secondary
#99BE45
accent
#EC3CB5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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