#3A2176#3A2176

#3A2176 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.137 H 290.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#3A2176
RGBrgb(58, 33, 118)
HSLhsl(258, 56%, 30%)
HSVhsv(258, 72%, 46%)
CMYKcmyk(50.8%, 72%, 0%, 53.7%)
CIE-LABlab(21.19, 33.78, -44.58)
CIE-LCHlch(21.19, 55.93, 307.15°)
OKLaboklab(33.54% 0.0481 -0.1278)
OKLCHoklch(33.54% 0.137 290.6)
XYZxyz(5.5579, 3.2950, 17.4792)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2176 #5D7621
analogous
#213376 #3A2176 #652176
triadic
#3A2176 #763A21 #21763A
tetradic
#3A2176 #762133 #5D7621 #217665
square
#3A2176 #762133 #5D7621 #217665
split-complementary
#3A2176 #766521 #337621
monochromatic
#0C0718 #221446 #3A2176 #522EA6 #6D46CB

Accessibility & contrast

On white

12.66
#3A2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3A2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2176
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2176#FFFFFF#000000##FFFFFF
##3A21761.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#263749
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a2176;
/* rgb */ color: rgb(58, 33, 118);
/* oklch */ color: oklch(33.5% 0.137 290.6);
Tailwind
colors: {
  custom: {
    50: '#765e9e',
    500: '#3a2176',
    950: '#000000',
  },
}
SCSS
$custom: #3a2176;
$custom-light: #765e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2176",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 257.647,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33538,
    "c": 0.13658,
    "h": 290.6
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#3A2176
secondary
#8DA94A
accent
#E048B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A2176

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

Preview Lab → · Contrast checker → · Palette generator →

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