#3E2387#3E2387

#3E2387 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.156 H 288.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3E2387
RGBrgb(62, 35, 135)
HSLhsl(256, 59%, 33%)
HSVhsv(256, 74%, 53%)
CMYKcmyk(54.1%, 74.1%, 0%, 47.1%)
CIE-LABlab(23.59, 38.54, -51.40)
CIE-LCHlch(23.59, 64.24, 306.86°)
OKLaboklab(35.83% 0.0488 -0.1477)
OKLCHoklch(35.83% 0.156 288.3)
XYZxyz(6.9595, 3.9751, 23.3175)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2387 #6C8723
analogous
#233A87 #3E2387 #702387
triadic
#3E2387 #873E23 #23873E
tetradic
#3E2387 #87233A #6C8723 #238770
square
#3E2387 #87233A #6C8723 #238770
split-complementary
#3E2387 #877023 #3A8723
monochromatic
#110A26 #281656 #3E2387 #5430B8 #7552D2

Accessibility & contrast

On white

11.70
#3E2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2387
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2387#FFFFFF#000000##FFFFFF
##3E23871.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#223E53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2387;
/* rgb */ color: rgb(62, 35, 135);
/* oklch */ color: oklch(35.8% 0.156 288.3);
Tailwind
colors: {
  custom: {
    50: '#7b61ab',
    500: '#3e2387',
    950: '#000000',
  },
}
SCSS
$custom: #3e2387;
$custom-light: #7b61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2387",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 256.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3583,
    "c": 0.15557,
    "h": 288.3
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#3E2387
secondary
#9AB650
accent
#E246B8
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2387

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

Preview Lab → · Contrast checker → · Palette generator →

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