#3E1C8A#3E1C8A

#3E1C8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.167 H 288.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3E1C8A
RGBrgb(62, 28, 138)
HSLhsl(259, 66%, 33%)
HSVhsv(259, 80%, 54%)
CMYKcmyk(55.1%, 79.7%, 0%, 45.9%)
CIE-LABlab(22.62, 43.01, -54.87)
CIE-LCHlch(22.62, 69.72, 308.09°)
OKLaboklab(35.24% 0.0537 -0.1578)
OKLCHoklch(35.24% 0.167 288.8)
XYZxyz(6.9880, 3.6893, 24.3837)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1C8A #688A1C
analogous
#1C318A #3E1C8A #751C8A
triadic
#3E1C8A #8A3E1C #1C8A3E
tetradic
#3E1C8A #8A1C31 #688A1C #1C8A75
square
#3E1C8A #8A1C31 #688A1C #1C8A75
split-complementary
#3E1C8A #8A751C #318A1C
monochromatic
#100724 #271257 #3E1C8A #5526BD #7447DA

Accessibility & contrast

On white

12.08
#3E1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1C8A
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1C8A#FFFFFF#000000##FFFFFF
##3E1C8A1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#203C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1c8a;
/* rgb */ color: rgb(62, 28, 138);
/* oklch */ color: oklch(35.2% 0.167 288.8);
Tailwind
colors: {
  custom: {
    50: '#7d5dad',
    500: '#3e1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1c8a;
$custom-light: #7d5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1c8a",
  "rgb": {
    "r": 62,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 258.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35235,
    "c": 0.16672,
    "h": 288.8
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#3E1C8A
secondary
#97BB46
accent
#E93FB4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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