#3E1A7B#3E1A7B

#3E1A7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.151 H 293.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#3E1A7B
RGBrgb(62, 26, 123)
HSLhsl(262, 65%, 29%)
HSVhsv(262, 79%, 48%)
CMYKcmyk(49.6%, 78.9%, 0%, 51.8%)
CIE-LABlab(20.80, 39.69, -48.39)
CIE-LCHlch(20.80, 62.59, 309.36°)
OKLaboklab(33.52% 0.0599 -0.1388)
OKLCHoklch(33.52% 0.151 293.3)
XYZxyz(5.9302, 3.1928, 19.0389)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A7B #577B1A
analogous
#1A277B #3E1A7B #6F1A7B
triadic
#3E1A7B #7B3E1A #1A7B3E
tetradic
#3E1A7B #7B1A27 #577B1A #1A7B6F
square
#3E1A7B #7B1A27 #577B1A #1A7B6F
split-complementary
#3E1A7B #7B6F1A #277B1A
monochromatic
#0D0519 #250F48 #3E1A7B #5725AE #743AD5

Accessibility & contrast

On white

12.82
#3E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1A7B
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A7B#FFFFFF#000000##FFFFFF
##3E1A7B1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2B354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1a7b;
/* rgb */ color: rgb(62, 26, 123);
/* oklch */ color: oklch(33.5% 0.151 293.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ba2',
    500: '#3e1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a7b;
$custom-light: #7a5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a7b",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 262.268,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33515,
    "c": 0.15119,
    "h": 293.3
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#3E1A7B
secondary
#87AF42
accent
#E840AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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