#3A20A0#3A20A0

#3A20A0 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.189 H 281.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3A20A0
RGBrgb(58, 32, 160)
HSLhsl(252, 67%, 38%)
HSVhsv(252, 80%, 63%)
CMYKcmyk(63.8%, 80%, 0%, 37.3%)
CIE-LABlab(25.17, 47.06, -64.25)
CIE-LCHlch(25.17, 79.64, 306.22°)
OKLaboklab(37.6% 0.038 -0.1854)
OKLCHoklch(37.6% 0.189 281.6)
XYZxyz(8.6046, 4.4700, 33.6603)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A20A0 #86A020
analogous
#2046A0 #3A20A0 #7A20A0
triadic
#3A20A0 #A03A20 #20A03A
tetradic
#3A20A0 #A02046 #86A020 #20A07A
square
#3A20A0 #A02046 #86A020 #20A07A
split-complementary
#3A20A0 #A07A20 #46A020
monochromatic
#150C3A #28166D #3A20A0 #4C2AD3 #765CDE

Accessibility & contrast

On white

11.09
#3A20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A20A0
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A20A0#FFFFFF#000000##FFFFFF
##3A20A01.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a20a0;
/* rgb */ color: rgb(58, 32, 160);
/* oklch */ color: oklch(37.6% 0.189 281.6);
Tailwind
colors: {
  custom: {
    50: '#7e60bd',
    500: '#3a20a0',
    950: '#000000',
  },
}
SCSS
$custom: #3a20a0;
$custom-light: #7e60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a20a0",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 252.188,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37601,
    "c": 0.18925,
    "h": 281.6
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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