#3E1A80#3E1A80

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

Color values

HEX#3E1A80
RGBrgb(62, 26, 128)
HSLhsl(261, 66%, 30%)
HSVhsv(261, 80%, 50%)
CMYKcmyk(51.6%, 79.7%, 0%, 49.8%)
CIE-LABlab(21.29, 41.11, -50.77)
CIE-LCHlch(21.29, 65.32, 309.00°)
OKLaboklab(34.01% 0.0584 -0.1458)
OKLCHoklch(34.01% 0.157 291.8)
XYZxyz(6.2512, 3.3212, 20.7296)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A80 #5C801A
analogous
#1A2980 #3E1A80 #711A80
triadic
#3E1A80 #803E1A #1A803E
tetradic
#3E1A80 #801A29 #5C801A #1A8071
square
#3E1A80 #801A29 #5C801A #1A8071
split-complementary
#3E1A80 #80711A #29801A
monochromatic
#0D051A #25104D #3E1A80 #5724B3 #733DD8

Accessibility & contrast

On white

12.62
#3E1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A80
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A80#FFFFFF#000000##FFFFFF
##3E1A801.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#28374C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1a80;
/* rgb */ color: rgb(62, 26, 128);
/* oklch */ color: oklch(34.0% 0.157 291.8);
Tailwind
colors: {
  custom: {
    50: '#7b5ba6',
    500: '#3e1a80',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a80;
$custom-light: #7b5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a80",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 261.176,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34005,
    "c": 0.15705,
    "h": 291.8
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#3E1A80
secondary
#8CB442
accent
#E93FAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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