#3A219D#3A219D

#3A219D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.185 H 282.0°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3A219D
RGBrgb(58, 33, 157)
HSLhsl(252, 65%, 37%)
HSVhsv(252, 79%, 62%)
CMYKcmyk(63.1%, 79%, 0%, 38.4%)
CIE-LABlab(25.02, 45.68, -62.67)
CIE-LCHlch(25.02, 77.55, 306.08°)
OKLaboklab(37.4% 0.0383 -0.1808)
OKLCHoklch(37.4% 0.185 282)
XYZxyz(8.3727, 4.4210, 32.3039)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A219D #849D21
analogous
#21469D #3A219D #78219D
triadic
#3A219D #9D3A21 #219D3A
tetradic
#3A219D #9D2146 #849D21 #219D78
square
#3A219D #9D2146 #849D21 #219D78
split-complementary
#3A219D #9D7821 #469D21
monochromatic
#150C38 #27166A #3A219D #4D2CD0 #765CDD

Accessibility & contrast

On white

11.14
#3A219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A219D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A219D#FFFFFF#000000##FFFFFF
##3A219D1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a219d;
/* rgb */ color: rgb(58, 33, 157);
/* oklch */ color: oklch(37.4% 0.185 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e60bb',
    500: '#3a219d',
    950: '#000000',
  },
}
SCSS
$custom: #3a219d;
$custom-light: #7e60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a219d",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 252.097,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37401,
    "c": 0.18481,
    "h": 282
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A219D

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

Preview Lab → · Contrast checker → · Palette generator →

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