#3E1E87#3E1E87

#3E1E87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.161 H 289.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3E1E87
RGBrgb(62, 30, 135)
HSLhsl(258, 64%, 32%)
HSVhsv(258, 78%, 53%)
CMYKcmyk(54.1%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.66, 41.16, -52.92)
CIE-LCHlch(22.66, 67.05, 307.88°)
OKLaboklab(35.17% 0.0531 -0.1521)
OKLCHoklch(35.17% 0.161 289.2)
XYZxyz(6.8228, 3.7016, 23.2720)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E87 #67871E
analogous
#1E3287 #3E1E87 #731E87
triadic
#3E1E87 #873E1E #1E873E
tetradic
#3E1E87 #871E32 #67871E #1E8773
square
#3E1E87 #871E32 #67871E #1E8773
split-complementary
#3E1E87 #87731E #32871E
monochromatic
#100823 #271355 #3E1E87 #5529B9 #7449D7

Accessibility & contrast

On white

12.07
#3E1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E87
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E87#FFFFFF#000000##FFFFFF
##3E1E871.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#223B51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1e87;
/* rgb */ color: rgb(62, 30, 135);
/* oklch */ color: oklch(35.2% 0.161 289.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eab',
    500: '#3e1e87',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e87;
$custom-light: #7c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e87",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 258.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35175,
    "c": 0.16114,
    "h": 289.2
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#3E1E87
secondary
#96B948
accent
#E741B4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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