#3E2491#3E2491

#3E2491 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.167 H 285.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3E2491
RGBrgb(62, 36, 145)
HSLhsl(254, 60%, 35%)
HSVhsv(254, 75%, 57%)
CMYKcmyk(57.2%, 75.2%, 0%, 43.1%)
CIE-LABlab(24.73, 41.03, -55.75)
CIE-LCHlch(24.73, 69.22, 306.35°)
OKLaboklab(36.93% 0.0456 -0.1605)
OKLCHoklch(36.93% 0.167 285.8)
XYZxyz(7.7268, 4.3298, 27.2112)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2491 #779124
analogous
#244091 #3E2491 #742491
triadic
#3E2491 #913E24 #24913E
tetradic
#3E2491 #912440 #779124 #249174
square
#3E2491 #912440 #779124 #249174
split-complementary
#3E2491 #917424 #409124
monochromatic
#140C2F #291860 #3E2491 #5330C2 #7759D6

Accessibility & contrast

On white

11.25
#3E2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2491
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2491#FFFFFF#000000##FFFFFF
##3E24911.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00378F
Tritanopia (blue-blind)
#174258
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2491;
/* rgb */ color: rgb(62, 36, 145);
/* oklch */ color: oklch(36.9% 0.167 285.8);
Tailwind
colors: {
  custom: {
    50: '#7d62b2',
    500: '#3e2491',
    950: '#000000',
  },
}
SCSS
$custom: #3e2491;
$custom-light: #7d62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2491",
  "rgb": {
    "r": 62,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 254.312,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36931,
    "c": 0.1668,
    "h": 285.8
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#3E2491
secondary
#A3BA56
accent
#E344BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2491

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

Preview Lab → · Contrast checker → · Palette generator →

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