#3E1D9A#3E1D9A

#3E1D9A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.184 H 285.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1D9A
RGBrgb(62, 29, 154)
HSLhsl(256, 68%, 36%)
HSVhsv(256, 81%, 60%)
CMYKcmyk(59.7%, 81.2%, 0%, 39.6%)
CIE-LABlab(24.43, 47.16, -61.78)
CIE-LCHlch(24.43, 77.72, 307.35°)
OKLaboklab(37% 0.0479 -0.178)
OKLCHoklch(37% 0.184 285.1)
XYZxyz(8.2569, 4.2354, 30.9480)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D9A #799A1D
analogous
#1D3A9A #3E1D9A #7C1D9A
triadic
#3E1D9A #9A3E1D #1D9A3E
tetradic
#3E1D9A #9A1D3A #799A1D #1D9A7C
square
#3E1D9A #9A1D3A #799A1D #1D9A7C
split-complementary
#3E1D9A #9A7C1D #3A9A1D
monochromatic
#150A33 #291366 #3E1D9A #5327CE #7853DF

Accessibility & contrast

On white

11.37
#3E1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D9A
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D9A#FFFFFF#000000##FFFFFF
##3E1D9A1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#06435C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1d9a;
/* rgb */ color: rgb(62, 29, 154);
/* oklch */ color: oklch(37.0% 0.184 285.1);
Tailwind
colors: {
  custom: {
    50: '#7f5eb9',
    500: '#3e1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d9a;
$custom-light: #7f5eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d9a",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 255.84,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36997,
    "c": 0.18436,
    "h": 285.1
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#3E1D9A
secondary
#A4C251
accent
#EB3DBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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