#3A1E9A#3A1E9A

#3A1E9A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.184 H 282.9°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#3A1E9A
RGBrgb(58, 30, 154)
HSLhsl(254, 67%, 36%)
HSVhsv(254, 81%, 60%)
CMYKcmyk(62.3%, 80.5%, 0%, 39.6%)
CIE-LABlab(24.20, 46.23, -62.19)
CIE-LCHlch(24.20, 77.49, 306.63°)
OKLaboklab(36.73% 0.041 -0.1793)
OKLCHoklch(36.73% 0.184 282.9)
XYZxyz(8.0401, 4.1606, 30.9450)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E9A #7E9A1E
analogous
#1E409A #3A1E9A #781E9A
triadic
#3A1E9A #9A3A1E #1E9A3A
tetradic
#3A1E9A #9A1E40 #7E9A1E #1E9A78
square
#3A1E9A #9A1E40 #7E9A1E #1E9A78
split-complementary
#3A1E9A #9A781E #409A1E
monochromatic
#130A34 #271467 #3A1E9A #4D28CD #7455DE

Accessibility & contrast

On white

11.46
#3A1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E9A
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E9A#FFFFFF#000000##FFFFFF
##3A1E9A1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1e9a;
/* rgb */ color: rgb(58, 30, 154);
/* oklch */ color: oklch(36.7% 0.184 282.9);
Tailwind
colors: {
  custom: {
    50: '#7d5eb9',
    500: '#3a1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e9a;
$custom-light: #7d5eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e9a",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 253.548,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36734,
    "c": 0.18399,
    "h": 282.9
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#3A1E9A
secondary
#A8C153
accent
#EA3EC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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