#3A20B4#3A20B4

#3A20B4 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.212 H 278.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#3A20B4
RGBrgb(58, 32, 180)
HSLhsl(251, 70%, 42%)
HSVhsv(251, 82%, 71%)
CMYKcmyk(67.8%, 82.2%, 0%, 29.4%)
CIE-LABlab(27.37, 52.94, -72.67)
CIE-LCHlch(27.37, 89.91, 306.08°)
OKLaboklab(39.78% 0.0319 -0.2099)
OKLCHoklch(39.78% 0.212 278.6)
XYZxyz(10.4970, 5.2270, 43.6269)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A20B4 #9AB420
analogous
#2050B4 #3A20B4 #8420B4
triadic
#3A20B4 #B43A20 #20B43A
tetradic
#3A20B4 #B42050 #9AB420 #20B484
square
#3A20B4 #B42050 #9AB420 #20B484
split-complementary
#3A20B4 #B48420 #50B420
monochromatic
#190E4C #291780 #3A20B4 #5336DB #7F6AE4

Accessibility & contrast

On white

10.27
#3A20B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3A20B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A20B4
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A20B4#FFFFFF#000000##FFFFFF
##3A20B41.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a20b4;
/* rgb */ color: rgb(58, 32, 180);
/* oklch */ color: oklch(39.8% 0.212 278.6);
Tailwind
colors: {
  custom: {
    50: '#8261cc',
    500: '#3a20b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a20b4;
$custom-light: #8261cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a20b4",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 180
  },
  "hsl": {
    "h": 250.541,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39776,
    "c": 0.21228,
    "h": 278.6
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#3A20B4
secondary
#B9CA66
accent
#ED3BCD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3A20B4

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

Preview Lab → · Contrast checker → · Palette generator →

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