#3A219C#3A219C

#3A219C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.184 H 282.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#3A219C
RGBrgb(58, 33, 156)
HSLhsl(252, 65%, 37%)
HSVhsv(252, 79%, 61%)
CMYKcmyk(62.8%, 78.8%, 0%, 38.8%)
CIE-LABlab(24.91, 45.38, -62.23)
CIE-LCHlch(24.91, 77.02, 306.10°)
OKLaboklab(37.3% 0.0386 -0.1795)
OKLCHoklch(37.3% 0.184 282.1)
XYZxyz(8.2877, 4.3870, 31.8561)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A219C #839C21
analogous
#21469C #3A219C #78219C
triadic
#3A219C #9C3A21 #219C3A
tetradic
#3A219C #9C2146 #839C21 #219C78
square
#3A219C #9C2146 #839C21 #219C78
split-complementary
#3A219C #9C7821 #469C21
monochromatic
#140C37 #271669 #3A219C #4D2CCF #755BDC

Accessibility & contrast

On white

11.18
#3A219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A219C
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A219C#FFFFFF#000000##FFFFFF
##3A219C1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a219c;
/* rgb */ color: rgb(58, 33, 156);
/* oklch */ color: oklch(37.3% 0.184 282.1);
Tailwind
colors: {
  custom: {
    50: '#7d60ba',
    500: '#3a219c',
    950: '#000000',
  },
}
SCSS
$custom: #3a219c;
$custom-light: #7d60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a219c",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 252.195,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37296,
    "c": 0.18363,
    "h": 282.1
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#3A219C
secondary
#ABC158
accent
#E840C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A219C

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

Preview Lab → · Contrast checker → · Palette generator →

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