#3A20A1#3A20A1

#3A20A1 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.190 H 281.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#3A20A1
RGBrgb(58, 32, 161)
HSLhsl(252, 67%, 38%)
HSVhsv(252, 80%, 63%)
CMYKcmyk(64%, 80.1%, 0%, 36.9%)
CIE-LABlab(25.28, 47.36, -64.68)
CIE-LCHlch(25.28, 80.17, 306.21°)
OKLaboklab(37.71% 0.0377 -0.1866)
OKLCHoklch(37.71% 0.19 281.4)
XYZxyz(8.6924, 4.5051, 34.1228)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A20A1 #87A120
analogous
#2046A1 #3A20A1 #7A20A1
triadic
#3A20A1 #A13A20 #20A13A
tetradic
#3A20A1 #A12046 #87A120 #20A17A
square
#3A20A1 #A12046 #87A120 #20A17A
split-complementary
#3A20A1 #A17A20 #46A120
monochromatic
#150C3B #28166E #3A20A1 #4C2AD4 #775DDF

Accessibility & contrast

On white

11.05
#3A20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A20A1
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A20A1#FFFFFF#000000##FFFFFF
##3A20A11.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a20a1;
/* rgb */ color: rgb(58, 32, 161);
/* oklch */ color: oklch(37.7% 0.190 281.4);
Tailwind
colors: {
  custom: {
    50: '#7e60be',
    500: '#3a20a1',
    950: '#000000',
  },
}
SCSS
$custom: #3a20a1;
$custom-light: #7e60be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a20a1",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 252.093,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37708,
    "c": 0.19042,
    "h": 281.4
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#3A20A1
secondary
#AEC35A
accent
#EA3EC7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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