#3E1D7D#3E1D7D

#3E1D7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.150 H 292.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#3E1D7D
RGBrgb(62, 29, 125)
HSLhsl(261, 62%, 30%)
HSVhsv(261, 77%, 49%)
CMYKcmyk(50.4%, 76.8%, 0%, 51%)
CIE-LABlab(21.52, 38.76, -48.49)
CIE-LCHlch(21.52, 62.08, 308.64°)
OKLaboklab(34.08% 0.0567 -0.1391)
OKLCHoklch(34.08% 0.15 292.2)
XYZxyz(6.1266, 3.3833, 19.7283)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D7D #5C7D1D
analogous
#1D2C7D #3E1D7D #6E1D7D
triadic
#3E1D7D #7D3E1D #1D7D3E
tetradic
#3E1D7D #7D1D2C #5C7D1D #1D7D6E
square
#3E1D7D #7D1D2C #5C7D1D #1D7D6E
split-complementary
#3E1D7D #7D6E1D #2C7D1D
monochromatic
#0D061A #25114B #3E1D7D #5729AF #7341D3

Accessibility & contrast

On white

12.52
#3E1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D7D
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D7D#FFFFFF#000000##FFFFFF
##3E1D7D1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2A374B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1d7d;
/* rgb */ color: rgb(62, 29, 125);
/* oklch */ color: oklch(34.1% 0.150 292.2);
Tailwind
colors: {
  custom: {
    50: '#7a5da4',
    500: '#3e1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d7d;
$custom-light: #7a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d7d",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 260.625,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34078,
    "c": 0.15022,
    "h": 292.2
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#3E1D7D
secondary
#8CB145
accent
#E542AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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