#3E1E8B#3E1E8B

#3E1E8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.166 H 288.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#3E1E8B
RGBrgb(62, 30, 139)
HSLhsl(258, 64%, 33%)
HSVhsv(258, 78%, 55%)
CMYKcmyk(55.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(23.05, 42.33, -54.78)
CIE-LCHlch(23.05, 69.23, 307.70°)
OKLaboklab(35.57% 0.0519 -0.1576)
OKLCHoklch(35.57% 0.166 288.2)
XYZxyz(7.1097, 3.8164, 24.7831)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E8B #6B8B1E
analogous
#1E348B #3E1E8B #741E8B
triadic
#3E1E8B #8B3E1E #1E8B3E
tetradic
#3E1E8B #8B1E34 #6B8B1E #1E8B74
square
#3E1E8B #8B1E34 #6B8B1E #1E8B74
split-complementary
#3E1E8B #8B741E #348B1E
monochromatic
#110826 #281359 #3E1E8B #5429BD #754BD8

Accessibility & contrast

On white

11.91
#3E1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E8B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E8B#FFFFFF#000000##FFFFFF
##3E1E8B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#1E3D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1e8b;
/* rgb */ color: rgb(62, 30, 139);
/* oklch */ color: oklch(35.6% 0.166 288.2);
Tailwind
colors: {
  custom: {
    50: '#7d5eae',
    500: '#3e1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e8b;
$custom-light: #7d5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e8b",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 257.615,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35572,
    "c": 0.1659,
    "h": 288.2
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#3E1E8B
secondary
#9ABB4A
accent
#E740B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3E1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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