#3E1E8F#3E1E8F

#3E1E8F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.171 H 287.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#3E1E8F
RGBrgb(62, 30, 143)
HSLhsl(257, 65%, 34%)
HSVhsv(257, 79%, 56%)
CMYKcmyk(56.6%, 79%, 0%, 43.9%)
CIE-LABlab(23.46, 43.50, -56.61)
CIE-LCHlch(23.46, 71.39, 307.54°)
OKLaboklab(35.97% 0.0507 -0.1629)
OKLCHoklch(35.97% 0.171 287.3)
XYZxyz(7.4073, 3.9355, 26.3506)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E8F #6F8F1E
analogous
#1E378F #3E1E8F #771E8F
triadic
#3E1E8F #8F3E1E #1E8F3E
tetradic
#3E1E8F #8F1E37 #6F8F1E #1E8F77
square
#3E1E8F #8F1E37 #6F8F1E #1E8F77
split-complementary
#3E1E8F #8F771E #378F1E
monochromatic
#12092A #28135C #3E1E8F #5429C2 #754EDA

Accessibility & contrast

On white

11.75
#3E1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3E1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E8F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E8F#FFFFFF#000000##FFFFFF
##3E1E8F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#1A3E56
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1e8f;
/* rgb */ color: rgb(62, 30, 143);
/* oklch */ color: oklch(36.0% 0.171 287.3);
Tailwind
colors: {
  custom: {
    50: '#7d5eb1',
    500: '#3e1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e8f;
$custom-light: #7d5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e8f",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 256.991,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35974,
    "c": 0.17063,
    "h": 287.3
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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