#3E1784#3E1784

#3E1784 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.165 H 291.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#3E1784
RGBrgb(62, 23, 132)
HSLhsl(261, 70%, 30%)
HSVhsv(261, 83%, 52%)
CMYKcmyk(53%, 82.6%, 0%, 48.2%)
CIE-LABlab(21.22, 43.60, -53.41)
CIE-LCHlch(21.22, 68.94, 309.22°)
OKLaboklab(34.08% 0.0594 -0.1535)
OKLCHoklch(34.08% 0.165 291.1)
XYZxyz(6.4567, 3.3026, 22.1226)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1784 #5D8417
analogous
#172684 #3E1784 #741784
triadic
#3E1784 #843E17 #17843E
tetradic
#3E1784 #841726 #5D8417 #178474
square
#3E1784 #841726 #5D8417 #178474
split-complementary
#3E1784 #847417 #268417
monochromatic
#0D051C #260E50 #3E1784 #5620B8 #7339DC

Accessibility & contrast

On white

12.65
#3E1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1784
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1784#FFFFFF#000000##FFFFFF
##3E17841.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#25374E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1784;
/* rgb */ color: rgb(62, 23, 132);
/* oklch */ color: oklch(34.1% 0.165 291.1);
Tailwind
colors: {
  custom: {
    50: '#7c5aa9',
    500: '#3e1784',
    950: '#000000',
  },
}
SCSS
$custom: #3e1784;
$custom-light: #7c5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1784",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 261.468,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34078,
    "c": 0.16457,
    "h": 291.1
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#3E1784
secondary
#8DB83F
accent
#ED3BAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1784

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

Preview Lab → · Contrast checker → · Palette generator →

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