#3E1E8E#3E1E8E

#3E1E8E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.169 H 287.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#3E1E8E
RGBrgb(62, 30, 142)
HSLhsl(257, 65%, 34%)
HSVhsv(257, 79%, 56%)
CMYKcmyk(56.3%, 78.9%, 0%, 44.3%)
CIE-LABlab(23.36, 43.21, -56.15)
CIE-LCHlch(23.36, 70.85, 307.58°)
OKLaboklab(35.87% 0.051 -0.1616)
OKLCHoklch(35.87% 0.169 287.5)
XYZxyz(7.3319, 3.9053, 25.9534)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E8E #6E8E1E
analogous
#1E368E #3E1E8E #761E8E
triadic
#3E1E8E #8E3E1E #1E8E3E
tetradic
#3E1E8E #8E1E36 #6E8E1E #1E8E76
square
#3E1E8E #8E1E36 #6E8E1E #1E8E76
split-complementary
#3E1E8E #8E761E #368E1E
monochromatic
#120929 #28135B #3E1E8E #5429C1 #754DD9

Accessibility & contrast

On white

11.79
#3E1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E8E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E8E#FFFFFF#000000##FFFFFF
##3E1E8E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#1B3E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1e8e;
/* rgb */ color: rgb(62, 30, 142);
/* oklch */ color: oklch(35.9% 0.169 287.5);
Tailwind
colors: {
  custom: {
    50: '#7d5eb0',
    500: '#3e1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e8e;
$custom-light: #7d5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e8e",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 257.143,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35873,
    "c": 0.16945,
    "h": 287.5
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#3E1E8E
secondary
#9CBC4C
accent
#E840B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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