#3A219A#3A219A

#3A219A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.181 H 282.5°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#3A219A
RGBrgb(58, 33, 154)
HSLhsl(252, 65%, 37%)
HSVhsv(252, 79%, 60%)
CMYKcmyk(62.3%, 78.6%, 0%, 39.6%)
CIE-LABlab(24.70, 44.77, -61.36)
CIE-LCHlch(24.70, 75.95, 306.12°)
OKLaboklab(37.09% 0.0392 -0.1769)
OKLCHoklch(37.09% 0.181 282.5)
XYZxyz(8.1197, 4.3198, 30.9715)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A219A #819A21
analogous
#21449A #3A219A #77219A
triadic
#3A219A #9A3A21 #219A3A
tetradic
#3A219A #9A2144 #819A21 #219A77
square
#3A219A #9A2144 #819A21 #219A77
split-complementary
#3A219A #9A7721 #449A21
monochromatic
#140B35 #271668 #3A219A #4D2CCC #755ADC

Accessibility & contrast

On white

11.27
#3A219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A219A
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A219A#FFFFFF#000000##FFFFFF
##3A219A1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a219a;
/* rgb */ color: rgb(58, 33, 154);
/* oklch */ color: oklch(37.1% 0.181 282.5);
Tailwind
colors: {
  custom: {
    50: '#7d60b9',
    500: '#3a219a',
    950: '#000000',
  },
}
SCSS
$custom: #3a219a;
$custom-light: #7d60b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a219a",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 252.397,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.18124,
    "h": 282.5
  },
  "luminance": 0.0432
}

Semantic roles & 50–950 ramp

primary
#3A219A
secondary
#AAC057
accent
#E840C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A219A

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

Preview Lab → · Contrast checker → · Palette generator →

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