#3E1A7A#3E1A7A

#3E1A7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.150 H 293.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3E1A7A
RGBrgb(62, 26, 122)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 48%)
CMYKcmyk(49.2%, 78.7%, 0%, 52.2%)
CIE-LABlab(20.70, 39.41, -47.91)
CIE-LCHlch(20.70, 62.03, 309.44°)
OKLaboklab(33.42% 0.0602 -0.1374)
OKLCHoklch(33.42% 0.15 293.6)
XYZxyz(5.8679, 3.1679, 18.7109)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A7A #567A1A
analogous
#1A267A #3E1A7A #6E1A7A
triadic
#3E1A7A #7A3E1A #1A7A3E
tetradic
#3E1A7A #7A1A26 #567A1A #1A7A6E
square
#3E1A7A #7A1A26 #567A1A #1A7A6E
split-complementary
#3E1A7A #7A6E1A #267A1A
monochromatic
#0D0519 #240F48 #3E1A7A #5825AC #7439D5

Accessibility & contrast

On white

12.86
#3E1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A7A
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A7A#FFFFFF#000000##FFFFFF
##3E1A7A1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#2C3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1a7a;
/* rgb */ color: rgb(62, 26, 122);
/* oklch */ color: oklch(33.4% 0.150 293.6);
Tailwind
colors: {
  custom: {
    50: '#7a5ba1',
    500: '#3e1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a7a;
$custom-light: #7a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a7a",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 262.5,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33419,
    "c": 0.15002,
    "h": 293.6
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#3E1A7A
secondary
#86AE41
accent
#E840A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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