#3E1A7D#3E1A7D

#3E1A7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.154 H 292.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3E1A7D
RGBrgb(62, 26, 125)
HSLhsl(262, 66%, 30%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(50.4%, 79.2%, 0%, 51%)
CIE-LABlab(20.99, 40.26, -49.35)
CIE-LCHlch(20.99, 63.68, 309.21°)
OKLaboklab(33.71% 0.0593 -0.1416)
OKLCHoklch(33.71% 0.154 292.7)
XYZxyz(6.0566, 3.2434, 19.7050)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A7D #597D1A
analogous
#1A287D #3E1A7D #701A7D
triadic
#3E1A7D #7D3E1A #1A7D3E
tetradic
#3E1A7D #7D1A28 #597D1A #1A7D70
square
#3E1A7D #7D1A28 #597D1A #1A7D70
split-complementary
#3E1A7D #7D701A #287D1A
monochromatic
#0D0519 #250F4A #3E1A7D #5725B0 #743BD6

Accessibility & contrast

On white

12.74
#3E1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A7D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A7D#FFFFFF#000000##FFFFFF
##3E1A7D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2A354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1a7d;
/* rgb */ color: rgb(62, 26, 125);
/* oklch */ color: oklch(33.7% 0.154 292.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3e1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a7d;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a7d",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 261.818,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.15354,
    "h": 292.7
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#3E1A7D
secondary
#89B142
accent
#E93FAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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