#3E1C8D#3E1C8D

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

Color values

HEX#3E1C8D
RGBrgb(62, 28, 141)
HSLhsl(258, 67%, 33%)
HSVhsv(258, 80%, 55%)
CMYKcmyk(56%, 80.1%, 0%, 44.7%)
CIE-LABlab(22.92, 43.88, -56.24)
CIE-LCHlch(22.92, 71.33, 307.96°)
OKLaboklab(35.54% 0.0528 -0.1618)
OKLCHoklch(35.54% 0.17 288.1)
XYZxyz(7.2082, 3.7774, 25.5434)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1C8D #6B8D1C
analogous
#1C328D #3E1C8D #761C8D
triadic
#3E1C8D #8D3E1C #1C8D3E
tetradic
#3E1C8D #8D1C32 #6B8D1C #1C8D76
square
#3E1C8D #8D1C32 #6B8D1C #1C8D76
split-complementary
#3E1C8D #8D761C #328D1C
monochromatic
#110827 #28125A #3E1C8D #5426C0 #7549DB

Accessibility & contrast

On white

11.96
#3E1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1C8D
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1C8D#FFFFFF#000000##FFFFFF
##3E1C8D1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#1D3D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1c8d;
/* rgb */ color: rgb(62, 28, 141);
/* oklch */ color: oklch(35.5% 0.170 288.1);
Tailwind
colors: {
  custom: {
    50: '#7d5daf',
    500: '#3e1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1c8d;
$custom-light: #7d5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1c8d",
  "rgb": {
    "r": 62,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 258.053,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3554,
    "c": 0.17023,
    "h": 288.1
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#3E1C8D
secondary
#9ABD48
accent
#EA3EB6
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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