#3E1D8A#3E1D8A

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

Color values

HEX#3E1D8A
RGBrgb(62, 29, 138)
HSLhsl(258, 65%, 33%)
HSVhsv(258, 79%, 54%)
CMYKcmyk(55.1%, 79%, 0%, 45.9%)
CIE-LABlab(22.78, 42.53, -54.60)
CIE-LCHlch(22.78, 69.21, 307.92°)
OKLaboklab(35.35% 0.053 -0.157)
OKLCHoklch(35.35% 0.166 288.6)
XYZxyz(7.0121, 3.7375, 24.3918)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D8A #698A1D
analogous
#1D338A #3E1D8A #741D8A
triadic
#3E1D8A #8A3E1D #1D8A3E
tetradic
#3E1D8A #8A1D33 #698A1D #1D8A74
square
#3E1D8A #8A1D33 #698A1D #1D8A74
split-complementary
#3E1D8A #8A741D #338A1D
monochromatic
#110825 #271257 #3E1D8A #5528BD #7449D9

Accessibility & contrast

On white

12.02
#3E1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3E1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D8A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D8A#FFFFFF#000000##FFFFFF
##3E1D8A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#203C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1d8a;
/* rgb */ color: rgb(62, 29, 138);
/* oklch */ color: oklch(35.4% 0.166 288.6);
Tailwind
colors: {
  custom: {
    50: '#7c5dad',
    500: '#3e1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d8a;
$custom-light: #7c5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d8a",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 258.165,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35352,
    "c": 0.16573,
    "h": 288.6
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#3E1D8A
secondary
#98BB48
accent
#E840B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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