#3E2591#3E2591

#3E2591 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.166 H 285.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#3E2591
RGBrgb(62, 37, 145)
HSLhsl(254, 59%, 36%)
HSVhsv(254, 74%, 57%)
CMYKcmyk(57.2%, 74.5%, 0%, 43.1%)
CIE-LABlab(24.92, 40.49, -55.43)
CIE-LCHlch(24.92, 68.64, 306.14°)
OKLaboklab(37.07% 0.0447 -0.1595)
OKLCHoklch(37.07% 0.166 285.7)
XYZxyz(7.7575, 4.3912, 27.2214)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2591 #789125
analogous
#254291 #3E2591 #742591
triadic
#3E2591 #913E25 #25913E
tetradic
#3E2591 #912542 #789125 #259174
square
#3E2591 #912542 #789125 #259174
split-complementary
#3E2591 #917425 #429125
monochromatic
#140C2F #291960 #3E2591 #5331C2 #775BD5

Accessibility & contrast

On white

11.18
#3E2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3E2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2591
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2591#FFFFFF#000000##FFFFFF
##3E25911.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2591;
/* rgb */ color: rgb(62, 37, 145);
/* oklch */ color: oklch(37.1% 0.166 285.7);
Tailwind
colors: {
  custom: {
    50: '#7d62b2',
    500: '#3e2591',
    950: '#000000',
  },
}
SCSS
$custom: #3e2591;
$custom-light: #7d62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2591",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 253.889,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37066,
    "c": 0.16569,
    "h": 285.7
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#3E2591
secondary
#A3BA58
accent
#E345BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2591

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

Preview Lab → · Contrast checker → · Palette generator →

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