#3E1A82#3E1A82

#3E1A82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.159 H 291.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3E1A82
RGBrgb(62, 26, 130)
HSLhsl(261, 67%, 31%)
HSVhsv(261, 80%, 51%)
CMYKcmyk(52.3%, 80%, 0%, 49%)
CIE-LABlab(21.48, 41.67, -51.71)
CIE-LCHlch(21.48, 66.41, 308.87°)
OKLaboklab(34.2% 0.0578 -0.1485)
OKLCHoklch(34.2% 0.159 291.2)
XYZxyz(6.3841, 3.3744, 21.4297)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A82 #5E821A
analogous
#1A2A82 #3E1A82 #721A82
triadic
#3E1A82 #823E1A #1A823E
tetradic
#3E1A82 #821A2A #5E821A #1A8272
square
#3E1A82 #821A2A #5E821A #1A8272
split-complementary
#3E1A82 #82721A #2A821A
monochromatic
#0D061C #26104F #3E1A82 #5624B5 #733ED8

Accessibility & contrast

On white

12.54
#3E1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A82
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A82#FFFFFF#000000##FFFFFF
##3E1A821.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#26374E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1a82;
/* rgb */ color: rgb(62, 26, 130);
/* oklch */ color: oklch(34.2% 0.159 291.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ba7',
    500: '#3e1a82',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a82;
$custom-light: #7b5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a82",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 260.769,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34203,
    "c": 0.15938,
    "h": 291.2
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#3E1A82
secondary
#8EB642
accent
#EA3EAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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