#3A20A9#3A20A9

#3A20A9 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.200 H 280.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#3A20A9
RGBrgb(58, 32, 169)
HSLhsl(251, 68%, 39%)
HSVhsv(251, 81%, 66%)
CMYKcmyk(65.7%, 81.1%, 0%, 33.7%)
CIE-LABlab(26.15, 49.73, -68.09)
CIE-LCHlch(26.15, 84.32, 306.14°)
OKLaboklab(38.57% 0.0353 -0.1966)
OKLCHoklch(38.57% 0.2 280.2)
XYZxyz(9.4206, 4.7964, 37.9578)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A20A9 #8FA920
analogous
#204BA9 #3A20A9 #7F20A9
triadic
#3A20A9 #A93A20 #20A93A
tetradic
#3A20A9 #A9204B #8FA920 #20A97F
square
#3A20A9 #A9204B #8FA920 #20A97F
split-complementary
#3A20A9 #A97F20 #4BA920
monochromatic
#170D42 #281676 #3A20A9 #4F2FD8 #7A62E1

Accessibility & contrast

On white

10.72
#3A20A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3A20A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A20A9
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A20A9#FFFFFF#000000##FFFFFF
##3A20A91.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#0039A7
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a20a9;
/* rgb */ color: rgb(58, 32, 169);
/* oklch */ color: oklch(38.6% 0.200 280.2);
Tailwind
colors: {
  custom: {
    50: '#8061c4',
    500: '#3a20a9',
    950: '#000000',
  },
}
SCSS
$custom: #3a20a9;
$custom-light: #8061c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a20a9",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 251.387,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.19971,
    "h": 280.2
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#3A20A9
secondary
#B3C65F
accent
#EB3DCA
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A20A9

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

Preview Lab → · Contrast checker → · Palette generator →

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