#3A209B#3A209B

#3A209B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.183 H 282.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3A209B
RGBrgb(58, 32, 155)
HSLhsl(253, 66%, 37%)
HSVhsv(253, 79%, 61%)
CMYKcmyk(62.6%, 79.4%, 0%, 39.2%)
CIE-LABlab(24.63, 45.57, -62.08)
CIE-LCHlch(24.63, 77.01, 306.28°)
OKLaboklab(37.07% 0.0395 -0.179)
OKLCHoklch(37.07% 0.183 282.4)
XYZxyz(8.1760, 4.2985, 31.4029)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A209B #819B20
analogous
#20449B #3A209B #78209B
triadic
#3A209B #9B3A20 #209B3A
tetradic
#3A209B #9B2044 #819B20 #209B78
square
#3A209B #9B2044 #819B20 #209B78
split-complementary
#3A209B #9B7820 #449B20
monochromatic
#140B36 #271668 #3A209B #4D2ACE #7559DD

Accessibility & contrast

On white

11.29
#3A209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A209B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A209B#FFFFFF#000000##FFFFFF
##3A209B1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a209b;
/* rgb */ color: rgb(58, 32, 155);
/* oklch */ color: oklch(37.1% 0.183 282.4);
Tailwind
colors: {
  custom: {
    50: '#7d60ba',
    500: '#3a209b',
    950: '#000000',
  },
}
SCSS
$custom: #3a209b;
$custom-light: #7d60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a209b",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 252.683,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37072,
    "c": 0.18336,
    "h": 282.4
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#3A209B
secondary
#AAC156
accent
#E93FC5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A209B

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

Preview Lab → · Contrast checker → · Palette generator →

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