#3E1B7E#3E1B7E

#3E1B7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.154 H 292.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#3E1B7E
RGBrgb(62, 27, 126)
HSLhsl(261, 65%, 30%)
HSVhsv(261, 79%, 49%)
CMYKcmyk(50.8%, 78.6%, 0%, 50.6%)
CIE-LABlab(21.26, 40.05, -49.54)
CIE-LCHlch(21.26, 63.71, 308.95°)
OKLaboklab(33.93% 0.0582 -0.1422)
OKLCHoklch(33.93% 0.154 292.2)
XYZxyz(6.1434, 3.3141, 20.0506)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B7E #5B7E1B
analogous
#1B2A7E #3E1B7E #6F1B7E
triadic
#3E1B7E #7E3E1B #1B7E3E
tetradic
#3E1B7E #7E1B2A #5B7E1B #1B7E6F
square
#3E1B7E #7E1B2A #5B7E1B #1B7E6F
split-complementary
#3E1B7E #7E6F1B #2A7E1B
monochromatic
#0C0519 #25104C #3E1B7E #5726B0 #733ED6

Accessibility & contrast

On white

12.63
#3E1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B7E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B7E#FFFFFF#000000##FFFFFF
##3E1B7E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#29364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1b7e;
/* rgb */ color: rgb(62, 27, 126);
/* oklch */ color: oklch(33.9% 0.154 292.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ca4',
    500: '#3e1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b7e;
$custom-light: #7b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b7e",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 261.212,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.33927,
    "c": 0.15365,
    "h": 292.2
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#3E1B7E
secondary
#8BB243
accent
#E840AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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