#3A2182#3A2182

#3A2182 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.152 H 287.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3A2182
RGBrgb(58, 33, 130)
HSLhsl(255, 60%, 32%)
HSVhsv(255, 75%, 51%)
CMYKcmyk(55.4%, 74.6%, 0%, 49%)
CIE-LABlab(22.30, 37.46, -50.39)
CIE-LCHlch(22.30, 62.79, 306.62°)
OKLaboklab(34.67% 0.0455 -0.1449)
OKLCHoklch(34.67% 0.152 287.4)
XYZxyz(6.3169, 3.5986, 21.4765)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2182 #698221
analogous
#213982 #3A2182 #6B2182
triadic
#3A2182 #823A21 #21823A
tetradic
#3A2182 #822139 #698221 #21826B
square
#3A2182 #822139 #698221 #21826B
split-complementary
#3A2182 #826B21 #398221
monochromatic
#0E0820 #241551 #3A2182 #502DB3 #6E4CD2

Accessibility & contrast

On white

12.21
#3A2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2182
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2182#FFFFFF#000000##FFFFFF
##3A21821.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#1D3B4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a2182;
/* rgb */ color: rgb(58, 33, 130);
/* oklch */ color: oklch(34.7% 0.152 287.4);
Tailwind
colors: {
  custom: {
    50: '#795fa7',
    500: '#3a2182',
    950: '#000000',
  },
}
SCSS
$custom: #3a2182;
$custom-light: #795fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2182",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 255.464,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34669,
    "c": 0.15188,
    "h": 287.4
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#3A2182
secondary
#99B44A
accent
#E345BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2182

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

Preview Lab → · Contrast checker → · Palette generator →

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