#3A20A3#3A20A3

#3A20A3 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.193 H 281.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#3A20A3
RGBrgb(58, 32, 163)
HSLhsl(252, 67%, 38%)
HSVhsv(252, 80%, 64%)
CMYKcmyk(64.4%, 80.4%, 0%, 36.1%)
CIE-LABlab(25.49, 47.95, -65.54)
CIE-LCHlch(25.49, 81.21, 306.19°)
OKLaboklab(37.92% 0.0371 -0.1892)
OKLCHoklch(37.92% 0.193 281.1)
XYZxyz(8.8702, 4.5762, 35.0591)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A20A3 #89A320
analogous
#2048A3 #3A20A3 #7B20A3
triadic
#3A20A3 #A33A20 #20A33A
tetradic
#3A20A3 #A32048 #89A320 #20A37B
square
#3A20A3 #A32048 #89A320 #20A37B
split-complementary
#3A20A3 #A37B20 #48A320
monochromatic
#160C3D #281670 #3A20A3 #4D2BD5 #785EDF

Accessibility & contrast

On white

10.96
#3A20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A20A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A20A3
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A20A3#FFFFFF#000000##FFFFFF
##3A20A31.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a20a3;
/* rgb */ color: rgb(58, 32, 163);
/* oklch */ color: oklch(37.9% 0.193 281.1);
Tailwind
colors: {
  custom: {
    50: '#7f60c0',
    500: '#3a20a3',
    950: '#000000',
  },
}
SCSS
$custom: #3a20a3;
$custom-light: #7f60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a20a3",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 251.908,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37922,
    "c": 0.19276,
    "h": 281.1
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#3A20A3
secondary
#AFC45B
accent
#EA3EC8
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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