#3E1B87#3E1B87

#3E1B87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.164 H 289.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3E1B87
RGBrgb(62, 27, 135)
HSLhsl(259, 67%, 32%)
HSVhsv(259, 80%, 53%)
CMYKcmyk(54.1%, 80%, 0%, 47.1%)
CIE-LABlab(22.15, 42.63, -53.76)
CIE-LCHlch(22.15, 68.61, 308.41°)
OKLaboklab(34.82% 0.0554 -0.1546)
OKLCHoklch(34.82% 0.164 289.7)
XYZxyz(6.7504, 3.5570, 23.2478)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B87 #64871B
analogous
#1B2E87 #3E1B87 #741B87
triadic
#3E1B87 #873E1B #1B873E
tetradic
#3E1B87 #871B2E #64871B #1B8774
square
#3E1B87 #871B2E #64871B #1B8774
split-complementary
#3E1B87 #87741B #2E871B
monochromatic
#0F0721 #271154 #3E1B87 #5525BA #7443D9

Accessibility & contrast

On white

12.27
#3E1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B87
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B87#FFFFFF#000000##FFFFFF
##3E1B871.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#223A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1b87;
/* rgb */ color: rgb(62, 27, 135);
/* oklch */ color: oklch(34.8% 0.164 289.7);
Tailwind
colors: {
  custom: {
    50: '#7c5cab',
    500: '#3e1b87',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b87;
$custom-light: #7c5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b87",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 259.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.16421,
    "h": 289.7
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#3E1B87
secondary
#94BA44
accent
#EA3EB2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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