#3E1A97#3E1A97

#3E1A97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.183 H 286.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#3E1A97
RGBrgb(62, 26, 151)
HSLhsl(257, 71%, 35%)
HSVhsv(257, 83%, 59%)
CMYKcmyk(58.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.66, 47.62, -61.22)
CIE-LCHlch(23.66, 77.56, 307.88°)
OKLaboklab(36.37% 0.0507 -0.1763)
OKLCHoklch(36.37% 0.183 286)
XYZxyz(7.9402, 3.9968, 29.6252)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A97 #73971A
analogous
#1A3597 #3E1A97 #7D1A97
triadic
#3E1A97 #973E1A #1A973E
tetradic
#3E1A97 #971A35 #73971A #1A977D
square
#3E1A97 #971A35 #73971A #1A977D
split-complementary
#3E1A97 #977D1A #35971A
monochromatic
#13082F #291163 #3E1A97 #5323CB #764BE0

Accessibility & contrast

On white

11.67
#3E1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A97
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A97#FFFFFF#000000##FFFFFF
##3E1A971.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#0E405A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1a97;
/* rgb */ color: rgb(62, 26, 151);
/* oklch */ color: oklch(36.4% 0.183 286.0);
Tailwind
colors: {
  custom: {
    50: '#7f5db7',
    500: '#3e1a97',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a97;
$custom-light: #7f5db7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a97",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 257.28,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.18349,
    "h": 286
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#3E1A97
secondary
#A0C24B
accent
#ED3ABA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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