#3A219B#3A219B

#3A219B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.182 H 282.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#3A219B
RGBrgb(58, 33, 155)
HSLhsl(252, 65%, 37%)
HSVhsv(252, 79%, 61%)
CMYKcmyk(62.6%, 78.7%, 0%, 39.2%)
CIE-LABlab(24.81, 45.07, -61.80)
CIE-LCHlch(24.81, 76.49, 306.11°)
OKLaboklab(37.19% 0.0389 -0.1782)
OKLCHoklch(37.19% 0.182 282.3)
XYZxyz(8.2033, 4.3532, 31.4120)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A219B #829B21
analogous
#21459B #3A219B #77219B
triadic
#3A219B #9B3A21 #219B3A
tetradic
#3A219B #9B2145 #829B21 #219B77
square
#3A219B #9B2145 #829B21 #219B77
split-complementary
#3A219B #9B7721 #459B21
monochromatic
#140C36 #271669 #3A219B #4D2CCD #755ADC

Accessibility & contrast

On white

11.23
#3A219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A219B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A219B#FFFFFF#000000##FFFFFF
##3A219B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a219b;
/* rgb */ color: rgb(58, 33, 155);
/* oklch */ color: oklch(37.2% 0.182 282.3);
Tailwind
colors: {
  custom: {
    50: '#7d60ba',
    500: '#3a219b',
    950: '#000000',
  },
}
SCSS
$custom: #3a219b;
$custom-light: #7d60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a219b",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 252.295,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37191,
    "c": 0.18244,
    "h": 282.3
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A219B

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

Preview Lab → · Contrast checker → · Palette generator →

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