#3A1AA1#3A1AA1

#3A1AA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.195 H 282.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3A1AA1
RGBrgb(58, 26, 161)
HSLhsl(254, 72%, 37%)
HSVhsv(254, 84%, 63%)
CMYKcmyk(64%, 83.9%, 0%, 36.9%)
CIE-LABlab(24.36, 50.04, -66.20)
CIE-LCHlch(24.36, 82.99, 307.08°)
OKLaboklab(37.07% 0.0409 -0.191)
OKLCHoklch(37.07% 0.195 282.1)
XYZxyz(8.5453, 4.2109, 34.0738)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1AA1 #81A11A
analogous
#1A3EA1 #3A1AA1 #7E1AA1
triadic
#3A1AA1 #A13A1A #1AA13A
tetradic
#3A1AA1 #A11A3E #81A11A #1AA17E
square
#3A1AA1 #A11A3E #81A11A #1AA17E
split-complementary
#3A1AA1 #A17E1A #3EA11A
monochromatic
#140938 #27116C #3A1AA1 #4D23D6 #7552E3

Accessibility & contrast

On white

11.40
#3A1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1AA1
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1AA1#FFFFFF#000000##FFFFFF
##3A1AA11.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1aa1;
/* rgb */ color: rgb(58, 26, 161);
/* oklch */ color: oklch(37.1% 0.195 282.1);
Tailwind
colors: {
  custom: {
    50: '#7f5dbe',
    500: '#3a1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #3a1aa1;
$custom-light: #7f5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1aa1",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 254.222,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37073,
    "c": 0.19531,
    "h": 282.1
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#3A1AA1
secondary
#AAC651
accent
#EF39C4
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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