#3E1C8F#3E1C8F

#3E1C8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.173 H 287.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3E1C8F
RGBrgb(62, 28, 143)
HSLhsl(258, 67%, 34%)
HSVhsv(258, 80%, 56%)
CMYKcmyk(56.6%, 80.4%, 0%, 43.9%)
CIE-LABlab(23.13, 44.45, -57.15)
CIE-LCHlch(23.13, 72.40, 307.88°)
OKLaboklab(35.74% 0.0521 -0.1645)
OKLCHoklch(35.74% 0.173 287.6)
XYZxyz(7.3583, 3.8374, 26.3342)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1C8F #6D8F1C
analogous
#1C338F #3E1C8F #771C8F
triadic
#3E1C8F #8F3E1C #1C8F3E
tetradic
#3E1C8F #8F1C33 #6D8F1C #1C8F77
square
#3E1C8F #8F1C33 #6D8F1C #1C8F77
split-complementary
#3E1C8F #8F771C #338F1C
monochromatic
#120829 #28125C #3E1C8F #5426C2 #754ADC

Accessibility & contrast

On white

11.88
#3E1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1C8F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1C8F#FFFFFF#000000##FFFFFF
##3E1C8F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#1A3E55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1c8f;
/* rgb */ color: rgb(62, 28, 143);
/* oklch */ color: oklch(35.7% 0.173 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d5db1',
    500: '#3e1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1c8f;
$custom-light: #7d5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1c8f",
  "rgb": {
    "r": 62,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 257.739,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.17256,
    "h": 287.6
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#3E1C8F
secondary
#9BBE49
accent
#EA3EB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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