#3E1780#3E1780

#3E1780 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.160 H 292.3°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#3E1780
RGBrgb(62, 23, 128)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 82%, 50%)
CMYKcmyk(51.6%, 82%, 0%, 49.8%)
CIE-LABlab(20.81, 42.49, -51.55)
CIE-LCHlch(20.81, 66.80, 309.49°)
OKLaboklab(33.67% 0.0607 -0.1481)
OKLCHoklch(33.67% 0.16 292.3)
XYZxyz(6.1882, 3.1952, 20.7086)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1780 #598017
analogous
#172480 #3E1780 #731780
triadic
#3E1780 #803E17 #17803E
tetradic
#3E1780 #801724 #598017 #178073
square
#3E1780 #801724 #598017 #178073
split-complementary
#3E1780 #807317 #248017
monochromatic
#0D051A #250E4C #3E1780 #5720B4 #7436DB

Accessibility & contrast

On white

12.81
#3E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1780
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1780#FFFFFF#000000##FFFFFF
##3E17801.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1780;
/* rgb */ color: rgb(62, 23, 128);
/* oklch */ color: oklch(33.7% 0.160 292.3);
Tailwind
colors: {
  custom: {
    50: '#7b5aa6',
    500: '#3e1780',
    950: '#000000',
  },
}
SCSS
$custom: #3e1780;
$custom-light: #7b5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1780",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 262.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33672,
    "c": 0.16003,
    "h": 292.3
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#3E1780
secondary
#89B43E
accent
#EC3BAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1780

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

Preview Lab → · Contrast checker → · Palette generator →

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