#3E1D9C#3E1D9C

#3E1D9C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.187 H 284.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3E1D9C
RGBrgb(62, 29, 156)
HSLhsl(256, 69%, 36%)
HSVhsv(256, 81%, 61%)
CMYKcmyk(60.3%, 81.4%, 0%, 38.8%)
CIE-LABlab(24.65, 47.73, -62.66)
CIE-LCHlch(24.65, 78.77, 307.30°)
OKLaboklab(37.21% 0.0472 -0.1806)
OKLCHoklch(37.21% 0.187 284.7)
XYZxyz(8.4249, 4.3026, 31.8326)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D9C #7B9C1D
analogous
#1D3B9C #3E1D9C #7E1D9C
triadic
#3E1D9C #9C3E1D #1D9C3E
tetradic
#3E1D9C #9C1D3B #7B9C1D #1D9C7E
square
#3E1D9C #9C1D3B #7B9C1D #1D9C7E
split-complementary
#3E1D9C #9C7E1D #3B9C1D
monochromatic
#150A35 #291368 #3E1D9C #5327D0 #7854DF

Accessibility & contrast

On white

11.29
#3E1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D9C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D9C#FFFFFF#000000##FFFFFF
##3E1D9C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e1d9c;
/* rgb */ color: rgb(62, 29, 156);
/* oklch */ color: oklch(37.2% 0.187 284.7);
Tailwind
colors: {
  custom: {
    50: '#805eba',
    500: '#3e1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d9c;
$custom-light: #805eba;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d9c",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 255.591,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37207,
    "c": 0.18666,
    "h": 284.7
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#3E1D9C
secondary
#A5C252
accent
#EB3CBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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