#3A20A2#3A20A2

#3A20A2 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.192 H 281.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3A20A2
RGBrgb(58, 32, 162)
HSLhsl(252, 67%, 38%)
HSVhsv(252, 80%, 64%)
CMYKcmyk(64.2%, 80.2%, 0%, 36.5%)
CIE-LABlab(25.38, 47.66, -65.11)
CIE-LCHlch(25.38, 80.69, 306.20°)
OKLaboklab(37.82% 0.0374 -0.1879)
OKLCHoklch(37.82% 0.192 281.3)
XYZxyz(8.7810, 4.5405, 34.5891)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A20A2 #88A220
analogous
#2047A2 #3A20A2 #7B20A2
triadic
#3A20A2 #A23A20 #20A23A
tetradic
#3A20A2 #A22047 #88A220 #20A27B
square
#3A20A2 #A22047 #88A220 #20A27B
split-complementary
#3A20A2 #A27B20 #47A220
monochromatic
#150C3C #28166F #3A20A2 #4C2AD5 #775DDF

Accessibility & contrast

On white

11.01
#3A20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A20A2
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A20A2#FFFFFF#000000##FFFFFF
##3A20A21.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a20a2;
/* rgb */ color: rgb(58, 32, 162);
/* oklch */ color: oklch(37.8% 0.192 281.3);
Tailwind
colors: {
  custom: {
    50: '#7f60bf',
    500: '#3a20a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a20a2;
$custom-light: #7f60bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a20a2",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 252,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37815,
    "c": 0.19159,
    "h": 281.3
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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