#3E1B8D#3E1B8D

#3E1B8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.171 H 288.2°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3E1B8D
RGBrgb(62, 27, 141)
HSLhsl(258, 68%, 33%)
HSVhsv(258, 81%, 55%)
CMYKcmyk(56%, 80.9%, 0%, 44.7%)
CIE-LABlab(22.76, 44.34, -56.51)
CIE-LCHlch(22.76, 71.83, 308.12°)
OKLaboklab(35.43% 0.0535 -0.1626)
OKLCHoklch(35.43% 0.171 288.2)
XYZxyz(7.1848, 3.7307, 25.5357)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B8D #6A8D1B
analogous
#1B318D #3E1B8D #771B8D
triadic
#3E1B8D #8D3E1B #1B8D3E
tetradic
#3E1B8D #8D1B31 #6A8D1B #1B8D77
square
#3E1B8D #8D1B31 #6A8D1B #1B8D77
split-complementary
#3E1B8D #8D771B #318D1B
monochromatic
#110726 #27115A #3E1B8D #5525C0 #7447DC

Accessibility & contrast

On white

12.03
#3E1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3E1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B8D
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B8D#FFFFFF#000000##FFFFFF
##3E1B8D1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#1D3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1b8d;
/* rgb */ color: rgb(62, 27, 141);
/* oklch */ color: oklch(35.4% 0.171 288.2);
Tailwind
colors: {
  custom: {
    50: '#7d5caf',
    500: '#3e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b8d;
$custom-light: #7d5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b8d",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 258.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35428,
    "c": 0.17117,
    "h": 288.2
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#3E1B8D
secondary
#99BD46
accent
#EB3DB5
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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