#3E1880#3E1880

#3E1880 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.159 H 292.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3E1880
RGBrgb(62, 24, 128)
HSLhsl(262, 68%, 30%)
HSVhsv(262, 81%, 50%)
CMYKcmyk(51.6%, 81.3%, 0%, 49.8%)
CIE-LABlab(20.96, 42.04, -51.30)
CIE-LCHlch(20.96, 66.32, 309.33°)
OKLaboklab(33.78% 0.06 -0.1473)
OKLCHoklch(33.78% 0.159 292.1)
XYZxyz(6.2084, 3.2357, 20.7153)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1880 #5A8018
analogous
#182680 #3E1880 #721880
triadic
#3E1880 #803E18 #18803E
tetradic
#3E1880 #801826 #5A8018 #188072
square
#3E1880 #801826 #5A8018 #188072
split-complementary
#3E1880 #807218 #268018
monochromatic
#0C051A #250E4C #3E1880 #5722B4 #7439DA

Accessibility & contrast

On white

12.75
#3E1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1880
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1880#FFFFFF#000000##FFFFFF
##3E18801.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#28364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1880;
/* rgb */ color: rgb(62, 24, 128);
/* oklch */ color: oklch(33.8% 0.159 292.1);
Tailwind
colors: {
  custom: {
    50: '#7b5aa6',
    500: '#3e1880',
    950: '#000000',
  },
}
SCSS
$custom: #3e1880;
$custom-light: #7b5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1880",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 261.923,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3378,
    "c": 0.15906,
    "h": 292.1
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#3E1880
secondary
#8AB440
accent
#EB3DAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1880

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

Preview Lab → · Contrast checker → · Palette generator →

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