#3E1D8B#3E1D8B

#3E1D8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.167 H 288.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#3E1D8B
RGBrgb(62, 29, 139)
HSLhsl(258, 65%, 33%)
HSVhsv(258, 79%, 55%)
CMYKcmyk(55.4%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.88, 42.82, -55.06)
CIE-LCHlch(22.88, 69.75, 307.87°)
OKLaboklab(35.45% 0.0527 -0.1584)
OKLCHoklch(35.45% 0.167 288.4)
XYZxyz(7.0848, 3.7666, 24.7748)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D8B #6A8B1D
analogous
#1D338B #3E1D8B #751D8B
triadic
#3E1D8B #8B3E1D #1D8B3E
tetradic
#3E1D8B #8B1D33 #6A8B1D #1D8B75
square
#3E1D8B #8B1D33 #6A8B1D #1D8B75
split-complementary
#3E1D8B #8B751D #338B1D
monochromatic
#110826 #271258 #3E1D8B #5528BE #7449D9

Accessibility & contrast

On white

11.98
#3E1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1D8B
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D8B#FFFFFF#000000##FFFFFF
##3E1D8B1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#1F3C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1d8b;
/* rgb */ color: rgb(62, 29, 139);
/* oklch */ color: oklch(35.5% 0.167 288.4);
Tailwind
colors: {
  custom: {
    50: '#7d5dae',
    500: '#3e1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d8b;
$custom-light: #7d5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d8b",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 258,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35453,
    "c": 0.16691,
    "h": 288.4
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#3E1D8B
secondary
#99BB49
accent
#E83FB6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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