#3A2196#3A2196

#3A2196 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.176 H 283.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#3A2196
RGBrgb(58, 33, 150)
HSLhsl(253, 64%, 36%)
HSVhsv(253, 78%, 59%)
CMYKcmyk(61.3%, 78%, 0%, 41.2%)
CIE-LABlab(24.29, 43.56, -59.58)
CIE-LCHlch(24.29, 73.81, 306.17°)
OKLaboklab(36.67% 0.0403 -0.1718)
OKLCHoklch(36.67% 0.176 283.2)
XYZxyz(7.7921, 4.1887, 29.2461)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2196 #7D9621
analogous
#214296 #3A2196 #742196
triadic
#3A2196 #963A21 #21963A
tetradic
#3A2196 #962142 #7D9621 #219674
square
#3A2196 #962142 #7D9621 #219674
split-complementary
#3A2196 #967421 #429621
monochromatic
#130B32 #271664 #3A2196 #4D2CC8 #7357DA

Accessibility & contrast

On white

11.43
#3A2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2196
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2196#FFFFFF#000000##FFFFFF
##3A21961.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2196;
/* rgb */ color: rgb(58, 33, 150);
/* oklch */ color: oklch(36.7% 0.176 283.2);
Tailwind
colors: {
  custom: {
    50: '#7c60b6',
    500: '#3a2196',
    950: '#000000',
  },
}
SCSS
$custom: #3a2196;
$custom-light: #7c60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2196",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 252.821,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36671,
    "c": 0.17645,
    "h": 283.2
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#3A2196
secondary
#A8BE55
accent
#E741C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2196

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

Preview Lab → · Contrast checker → · Palette generator →

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