#3E1B94#3E1B94

#3E1B94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.179 H 286.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3E1B94
RGBrgb(62, 27, 148)
HSLhsl(257, 69%, 34%)
HSVhsv(257, 82%, 58%)
CMYKcmyk(58.1%, 81.8%, 0%, 42%)
CIE-LABlab(23.49, 46.34, -59.65)
CIE-LCHlch(23.49, 75.53, 307.84°)
OKLaboklab(36.15% 0.0512 -0.1718)
OKLCHoklch(36.15% 0.179 286.6)
XYZxyz(7.7222, 3.9457, 28.3659)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B94 #71941B
analogous
#1B3594 #3E1B94 #7B1B94
triadic
#3E1B94 #943E1B #1B943E
tetradic
#3E1B94 #941B35 #71941B #1B947B
square
#3E1B94 #941B35 #71941B #1B947B
split-complementary
#3E1B94 #947B1B #35941B
monochromatic
#13082C #281260 #3E1B94 #5424C8 #764BDE

Accessibility & contrast

On white

11.74
#3E1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3E1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B94
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B94#FFFFFF#000000##FFFFFF
##3E1B941.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#133F58
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1b94;
/* rgb */ color: rgb(62, 27, 148);
/* oklch */ color: oklch(36.2% 0.179 286.6);
Tailwind
colors: {
  custom: {
    50: '#7e5db5',
    500: '#3e1b94',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b94;
$custom-light: #7e5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b94",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 257.355,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36153,
    "c": 0.17922,
    "h": 286.6
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#3E1B94
secondary
#9EC04B
accent
#EC3CB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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