#3E2884#3E2884

#3E2884 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.146 H 287.8°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3E2884
RGBrgb(62, 40, 132)
HSLhsl(254, 53%, 34%)
HSVhsv(254, 70%, 52%)
CMYKcmyk(53%, 69.7%, 0%, 48.2%)
CIE-LABlab(24.35, 34.77, -48.28)
CIE-LCHlch(24.35, 59.50, 305.76°)
OKLaboklab(36.29% 0.0446 -0.1386)
OKLCHoklch(36.29% 0.146 287.8)
XYZxyz(6.9090, 4.2073, 22.2734)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2884 #6E8428
analogous
#284084 #3E2884 #6C2884
triadic
#3E2884 #843E28 #28843E
tetradic
#3E2884 #842840 #6E8428 #28846C
square
#3E2884 #842840 #6E8428 #28846C
split-complementary
#3E2884 #846C28 #408428
monochromatic
#120C26 #281A55 #3E2884 #5436B3 #755ACD

Accessibility & contrast

On white

11.40
#3E2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2884
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2884#FFFFFF#000000##FFFFFF
##3E28841.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#243F52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2884;
/* rgb */ color: rgb(62, 40, 132);
/* oklch */ color: oklch(36.3% 0.146 287.8);
Tailwind
colors: {
  custom: {
    50: '#7b64a9',
    500: '#3e2884',
    950: '#000000',
  },
}
SCSS
$custom: #3e2884;
$custom-light: #7b64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2884",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 254.348,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36286,
    "c": 0.14559,
    "h": 287.8
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#3E2884
secondary
#9CB256
accent
#DD4BBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E2884

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

Preview Lab → · Contrast checker → · Palette generator →

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