#3E1C7D#3E1C7D

#3E1C7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.151 H 292.4°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#3E1C7D
RGBrgb(62, 28, 125)
HSLhsl(261, 63%, 30%)
HSVhsv(261, 78%, 49%)
CMYKcmyk(50.4%, 77.6%, 0%, 51%)
CIE-LABlab(21.34, 39.27, -48.78)
CIE-LCHlch(21.34, 62.62, 308.84°)
OKLaboklab(33.95% 0.0576 -0.14)
OKLCHoklch(33.95% 0.151 292.4)
XYZxyz(6.1025, 3.3351, 19.7203)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1C7D #5B7D1C
analogous
#1C2A7D #3E1C7D #6F1C7D
triadic
#3E1C7D #7D3E1C #1C7D3E
tetradic
#3E1C7D #7D1C2A #5B7D1C #1C7D6F
square
#3E1C7D #7D1C2A #5B7D1C #1C7D6F
split-complementary
#3E1C7D #7D6F1C #2A7D1C
monochromatic
#0C0619 #25114B #3E1C7D #5727AF #733FD4

Accessibility & contrast

On white

12.60
#3E1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1C7D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1C7D#FFFFFF#000000##FFFFFF
##3E1C7D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2A364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1c7d;
/* rgb */ color: rgb(62, 28, 125);
/* oklch */ color: oklch(34.0% 0.151 292.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ca4',
    500: '#3e1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1c7d;
$custom-light: #7a5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1c7d",
  "rgb": {
    "r": 62,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 261.031,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.33952,
    "c": 0.15136,
    "h": 292.4
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#3E1C7D
secondary
#8BB144
accent
#E641AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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