#3E1684#3E1684

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

Color values

HEX#3E1684
RGBrgb(62, 22, 132)
HSLhsl(262, 71%, 30%)
HSVhsv(262, 83%, 52%)
CMYKcmyk(53%, 83.3%, 0%, 48.2%)
CIE-LABlab(21.07, 44.02, -53.65)
CIE-LCHlch(21.07, 69.40, 309.37°)
OKLaboklab(33.98% 0.0601 -0.1542)
OKLCHoklch(33.98% 0.165 291.3)
XYZxyz(6.4372, 3.2636, 22.1161)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1684 #5C8416
analogous
#162584 #3E1684 #751684
triadic
#3E1684 #843E16 #16843E
tetradic
#3E1684 #841625 #5C8416 #168475
square
#3E1684 #841625 #5C8416 #168475
split-complementary
#3E1684 #847516 #258416
monochromatic
#0D051B #250D50 #3E1684 #571FB8 #7337DE

Accessibility & contrast

On white

12.71
#3E1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1684
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1684#FFFFFF#000000##FFFFFF
##3E16841.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1684;
/* rgb */ color: rgb(62, 22, 132);
/* oklch */ color: oklch(34.0% 0.165 291.3);
Tailwind
colors: {
  custom: {
    50: '#7c59a9',
    500: '#3e1684',
    950: '#000000',
  },
}
SCSS
$custom: #3e1684;
$custom-light: #7c59a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1684",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 261.818,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.16548,
    "h": 291.3
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#3E1684
secondary
#8CB83D
accent
#EE3AAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1684

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

Preview Lab → · Contrast checker → · Palette generator →

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