#3E1E8A#3E1E8A

#3E1E8A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.165 H 288.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3E1E8A
RGBrgb(62, 30, 138)
HSLhsl(258, 64%, 33%)
HSVhsv(258, 78%, 54%)
CMYKcmyk(55.1%, 78.3%, 0%, 45.9%)
CIE-LABlab(22.96, 42.04, -54.32)
CIE-LCHlch(22.96, 68.69, 307.74°)
OKLaboklab(35.47% 0.0522 -0.1562)
OKLCHoklch(35.47% 0.165 288.5)
XYZxyz(7.0370, 3.7873, 24.4001)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E8A #6A8A1E
analogous
#1E348A #3E1E8A #741E8A
triadic
#3E1E8A #8A3E1E #1E8A3E
tetradic
#3E1E8A #8A1E34 #6A8A1E #1E8A74
square
#3E1E8A #8A1E34 #6A8A1E #1E8A74
split-complementary
#3E1E8A #8A741E #348A1E
monochromatic
#110825 #271358 #3E1E8A #5529BC #744BD8

Accessibility & contrast

On white

11.95
#3E1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1E8A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E8A#FFFFFF#000000##FFFFFF
##3E1E8A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#1F3C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1e8a;
/* rgb */ color: rgb(62, 30, 138);
/* oklch */ color: oklch(35.5% 0.165 288.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ead',
    500: '#3e1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e8a;
$custom-light: #7c5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e8a",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 257.778,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35472,
    "c": 0.16471,
    "h": 288.5
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#3E1E8A
secondary
#99BA4A
accent
#E741B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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