#3A209C#3A209C

#3A209C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.185 H 282.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3A209C
RGBrgb(58, 32, 156)
HSLhsl(253, 66%, 37%)
HSVhsv(253, 79%, 61%)
CMYKcmyk(62.8%, 79.5%, 0%, 38.8%)
CIE-LABlab(24.74, 45.87, -62.52)
CIE-LCHlch(24.74, 77.54, 306.27°)
OKLaboklab(37.18% 0.0392 -0.1803)
OKLCHoklch(37.18% 0.185 282.3)
XYZxyz(8.2603, 4.3323, 31.8470)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A209C #829C20
analogous
#20449C #3A209C #78209C
triadic
#3A209C #9C3A20 #209C3A
tetradic
#3A209C #9C2044 #829C20 #209C78
square
#3A209C #9C2044 #829C20 #209C78
split-complementary
#3A209C #9C7820 #449C20
monochromatic
#140B36 #271669 #3A209C #4D2ACF #7559DD

Accessibility & contrast

On white

11.25
#3A209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A209C
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A209C#FFFFFF#000000##FFFFFF
##3A209C1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a209c;
/* rgb */ color: rgb(58, 32, 156);
/* oklch */ color: oklch(37.2% 0.185 282.3);
Tailwind
colors: {
  custom: {
    50: '#7d60ba',
    500: '#3a209c',
    950: '#000000',
  },
}
SCSS
$custom: #3a209c;
$custom-light: #7d60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a209c",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 252.581,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37177,
    "c": 0.18455,
    "h": 282.3
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A209C

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

Preview Lab → · Contrast checker → · Palette generator →

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