#3A1AA0#3A1AA0

#3A1AA0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.194 H 282.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3A1AA0
RGBrgb(58, 26, 160)
HSLhsl(254, 72%, 36%)
HSVhsv(254, 84%, 63%)
CMYKcmyk(63.8%, 83.8%, 0%, 37.3%)
CIE-LABlab(24.24, 49.76, -65.78)
CIE-LCHlch(24.24, 82.48, 307.10°)
OKLaboklab(36.96% 0.0412 -0.1897)
OKLCHoklch(36.96% 0.194 282.3)
XYZxyz(8.4575, 4.1758, 33.6112)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1AA0 #80A01A
analogous
#1A3DA0 #3A1AA0 #7D1AA0
triadic
#3A1AA0 #A03A1A #1AA03A
tetradic
#3A1AA0 #A01A3D #80A01A #1AA07D
square
#3A1AA0 #A01A3D #80A01A #1AA07D
split-complementary
#3A1AA0 #A07D1A #3DA01A
monochromatic
#140937 #27116B #3A1AA0 #4D23D5 #7452E3

Accessibility & contrast

On white

11.44
#3A1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1AA0
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1AA0#FFFFFF#000000##FFFFFF
##3A1AA01.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1aa0;
/* rgb */ color: rgb(58, 26, 160);
/* oklch */ color: oklch(37.0% 0.194 282.3);
Tailwind
colors: {
  custom: {
    50: '#7f5dbd',
    500: '#3a1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #3a1aa0;
$custom-light: #7f5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1aa0",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 254.328,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36963,
    "c": 0.19417,
    "h": 282.3
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#3A1AA0
secondary
#A9C550
accent
#EF39C3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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