#3E1884#3E1884

#3E1884 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.164 H 291.0°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3E1884
RGBrgb(62, 24, 132)
HSLhsl(261, 69%, 31%)
HSVhsv(261, 82%, 52%)
CMYKcmyk(53%, 81.8%, 0%, 48.2%)
CIE-LABlab(21.37, 43.16, -53.16)
CIE-LCHlch(21.37, 68.47, 309.07°)
OKLaboklab(34.18% 0.0586 -0.1528)
OKLCHoklch(34.18% 0.164 291)
XYZxyz(6.4769, 3.3431, 22.1293)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1884 #5E8418
analogous
#182884 #3E1884 #741884
triadic
#3E1884 #843E18 #18843E
tetradic
#3E1884 #841828 #5E8418 #188474
square
#3E1884 #841828 #5E8418 #188474
split-complementary
#3E1884 #847418 #288418
monochromatic
#0D051C #260F50 #3E1884 #5621B8 #733BDB

Accessibility & contrast

On white

12.59
#3E1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1884
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1884#FFFFFF#000000##FFFFFF
##3E18841.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.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: #3e1884;
/* rgb */ color: rgb(62, 24, 132);
/* oklch */ color: oklch(34.2% 0.164 291.0);
Tailwind
colors: {
  custom: {
    50: '#7c5aa9',
    500: '#3e1884',
    950: '#000000',
  },
}
SCSS
$custom: #3e1884;
$custom-light: #7c5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1884",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 261.111,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34183,
    "c": 0.16364,
    "h": 291
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#3E1884
secondary
#8EB840
accent
#EC3CAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1884

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

Preview Lab → · Contrast checker → · Palette generator →

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