#3A1EAE#3A1EAE

#3A1EAE is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 38.9% C 0.207 H 279.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#3A1EAE
RGBrgb(58, 30, 174)
HSLhsl(252, 71%, 40%)
HSVhsv(252, 83%, 68%)
CMYKcmyk(66.7%, 82.8%, 0%, 31.8%)
CIE-LABlab(26.40, 52.07, -70.68)
CIE-LCHlch(26.40, 87.79, 306.38°)
OKLaboklab(38.91% 0.0347 -0.2041)
OKLCHoklch(38.91% 0.207 279.6)
XYZxyz(9.8467, 4.8833, 40.4599)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1EAE #92AE1E
analogous
#1E4AAE #3A1EAE #821EAE
triadic
#3A1EAE #AE3A1E #1EAE3A
tetradic
#3A1EAE #AE1E4A #92AE1E #1EAE82
square
#3A1EAE #AE1E4A #92AE1E #1EAE82
split-complementary
#3A1EAE #AE821E #4AAE1E
monochromatic
#170C46 #29157A #3A1EAE #502EDB #7C62E4

Accessibility & contrast

On white

10.62
#3A1EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3A1EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1EAE
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1EAE#FFFFFF#000000##FFFFFF
##3A1EAE1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#004B68
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a1eae;
/* rgb */ color: rgb(58, 30, 174);
/* oklch */ color: oklch(38.9% 0.207 279.6);
Tailwind
colors: {
  custom: {
    50: '#8160c8',
    500: '#3a1eae',
    950: '#000000',
  },
}
SCSS
$custom: #3a1eae;
$custom-light: #8160c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1eae",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 174
  },
  "hsl": {
    "h": 251.667,
    "s": 70.588,
    "l": 40
  },
  "oklch": {
    "l": 0.38908,
    "c": 0.207,
    "h": 279.6
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#3A1EAE
secondary
#B4C95F
accent
#ED3ACB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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