#3A209D#3A209D

#3A209D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.186 H 282.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3A209D
RGBrgb(58, 32, 157)
HSLhsl(252, 66%, 37%)
HSVhsv(252, 80%, 62%)
CMYKcmyk(63.1%, 79.6%, 0%, 38.4%)
CIE-LABlab(24.85, 46.17, -62.95)
CIE-LCHlch(24.85, 78.07, 306.25°)
OKLaboklab(37.28% 0.0389 -0.1816)
OKLCHoklch(37.28% 0.186 282.1)
XYZxyz(8.3453, 4.3663, 32.2948)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A209D #839D20
analogous
#20459D #3A209D #79209D
triadic
#3A209D #9D3A20 #209D3A
tetradic
#3A209D #9D2045 #839D20 #209D79
square
#3A209D #9D2045 #839D20 #209D79
split-complementary
#3A209D #9D7920 #459D20
monochromatic
#140B37 #27166A #3A209D #4D2AD0 #755ADD

Accessibility & contrast

On white

11.21
#3A209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A209D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A209D#FFFFFF#000000##FFFFFF
##3A209D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a209d;
/* rgb */ color: rgb(58, 32, 157);
/* oklch */ color: oklch(37.3% 0.186 282.1);
Tailwind
colors: {
  custom: {
    50: '#7e60bb',
    500: '#3a209d',
    950: '#000000',
  },
}
SCSS
$custom: #3a209d;
$custom-light: #7e60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a209d",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 252.48,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37283,
    "c": 0.18573,
    "h": 282.1
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#3A209D
secondary
#ABC157
accent
#E93FC6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A209D

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

Preview Lab → · Contrast checker → · Palette generator →

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