#3B20A2#3B20A2

#3B20A2 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.191 H 281.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3B20A2
RGBrgb(59, 32, 162)
HSLhsl(252, 67%, 38%)
HSVhsv(252, 80%, 64%)
CMYKcmyk(63.6%, 80.2%, 0%, 36.5%)
CIE-LABlab(25.48, 47.76, -64.96)
CIE-LCHlch(25.48, 80.63, 306.33°)
OKLaboklab(37.9% 0.0389 -0.1874)
OKLCHoklch(37.9% 0.191 281.7)
XYZxyz(8.8397, 4.5708, 34.5918)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B20A2 #87A220
analogous
#2046A2 #3B20A2 #7C20A2
triadic
#3B20A2 #A23B20 #20A23B
tetradic
#3B20A2 #A22046 #87A220 #20A27C
square
#3B20A2 #A22046 #87A220 #20A27C
split-complementary
#3B20A2 #A27C20 #46A220
monochromatic
#160C3C #28166F #3B20A2 #4E2AD5 #785DDF

Accessibility & contrast

On white

10.97
#3B20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B20A2
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B20A2#FFFFFF#000000##FFFFFF
##3B20A21.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b20a2;
/* rgb */ color: rgb(59, 32, 162);
/* oklch */ color: oklch(37.9% 0.191 281.7);
Tailwind
colors: {
  custom: {
    50: '#7f60bf',
    500: '#3b20a2',
    950: '#000000',
  },
}
SCSS
$custom: #3b20a2;
$custom-light: #7f60bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b20a2",
  "rgb": {
    "r": 59,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 252.462,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.19142,
    "h": 281.7
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#3B20A2
secondary
#AEC35A
accent
#EA3EC6
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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