#3A217A#3A217A

#3A217A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.142 H 289.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#3A217A
RGBrgb(58, 33, 122)
HSLhsl(257, 57%, 30%)
HSVhsv(257, 73%, 48%)
CMYKcmyk(52.5%, 73%, 0%, 52.2%)
CIE-LABlab(21.55, 35.00, -46.54)
CIE-LCHlch(21.55, 58.23, 306.94°)
OKLaboklab(33.91% 0.0473 -0.1336)
OKLCHoklch(33.91% 0.142 289.5)
XYZxyz(5.8006, 3.3921, 18.7577)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A217A #617A21
analogous
#21347A #3A217A #66217A
triadic
#3A217A #7A3A21 #217A3A
tetradic
#3A217A #7A2134 #617A21 #217A66
square
#3A217A #7A2134 #617A21 #217A66
split-complementary
#3A217A #7A6621 #347A21
monochromatic
#0C071A #23144A #3A217A #512EAA #6D48CD

Accessibility & contrast

On white

12.51
#3A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A217A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A217A#FFFFFF#000000##FFFFFF
##3A217A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#23384B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a217a;
/* rgb */ color: rgb(58, 33, 122);
/* oklch */ color: oklch(33.9% 0.142 289.5);
Tailwind
colors: {
  custom: {
    50: '#775ea1',
    500: '#3a217a',
    950: '#000000',
  },
}
SCSS
$custom: #3a217a;
$custom-light: #775ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a217a",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 256.854,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33908,
    "c": 0.14173,
    "h": 289.5
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#3A217A
secondary
#91AD4A
accent
#E147B6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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