#3A219F#3A219F

#3A219F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.187 H 281.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#3A219F
RGBrgb(58, 33, 159)
HSLhsl(252, 66%, 38%)
HSVhsv(252, 79%, 62%)
CMYKcmyk(63.5%, 79.2%, 0%, 37.6%)
CIE-LABlab(25.23, 46.28, -63.54)
CIE-LCHlch(25.23, 78.61, 306.07°)
OKLaboklab(37.61% 0.0378 -0.1833)
OKLCHoklch(37.61% 0.187 281.6)
XYZxyz(8.5448, 4.4898, 33.2105)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A219F #869F21
analogous
#21479F #3A219F #79219F
triadic
#3A219F #9F3A21 #219F3A
tetradic
#3A219F #9F2147 #869F21 #219F79
square
#3A219F #9F2147 #869F21 #219F79
split-complementary
#3A219F #9F7921 #479F21
monochromatic
#150C3A #28166C #3A219F #4C2CD2 #765DDD

Accessibility & contrast

On white

11.06
#3A219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3A219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A219F
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A219F#FFFFFF#000000##FFFFFF
##3A219F1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a219f;
/* rgb */ color: rgb(58, 33, 159);
/* oklch */ color: oklch(37.6% 0.187 281.6);
Tailwind
colors: {
  custom: {
    50: '#7e60bd',
    500: '#3a219f',
    950: '#000000',
  },
}
SCSS
$custom: #3a219f;
$custom-light: #7e60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a219f",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 251.905,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.18718,
    "h": 281.6
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#3A219F
secondary
#ADC25A
accent
#E93FC7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A219F

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

Preview Lab → · Contrast checker → · Palette generator →

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