#3E2492#3E2492

#3E2492 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.168 H 285.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#3E2492
RGBrgb(62, 36, 146)
HSLhsl(254, 60%, 36%)
HSVhsv(254, 75%, 57%)
CMYKcmyk(57.5%, 75.3%, 0%, 42.7%)
CIE-LABlab(24.83, 41.33, -56.21)
CIE-LCHlch(24.83, 69.77, 306.33°)
OKLaboklab(37.03% 0.0453 -0.1618)
OKLCHoklch(37.03% 0.168 285.6)
XYZxyz(7.8042, 4.3608, 27.6190)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2492 #789224
analogous
#244192 #3E2492 #752492
triadic
#3E2492 #923E24 #24923E
tetradic
#3E2492 #922441 #789224 #249275
square
#3E2492 #922441 #789224 #249275
split-complementary
#3E2492 #927524 #419224
monochromatic
#140C30 #291861 #3E2492 #5330C3 #775AD6

Accessibility & contrast

On white

11.22
#3E2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2492
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2492#FFFFFF#000000##FFFFFF
##3E24921.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003890
Tritanopia (blue-blind)
#154259
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2492;
/* rgb */ color: rgb(62, 36, 146);
/* oklch */ color: oklch(37.0% 0.168 285.6);
Tailwind
colors: {
  custom: {
    50: '#7d62b3',
    500: '#3e2492',
    950: '#000000',
  },
}
SCSS
$custom: #3e2492;
$custom-light: #7d62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2492",
  "rgb": {
    "r": 62,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 254.182,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.16802,
    "h": 285.6
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#3E2492
secondary
#A3BB57
accent
#E444BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2492

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

Preview Lab → · Contrast checker → · Palette generator →

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