#3A2191#3A2191

#3A2191 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.170 H 284.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3A2191
RGBrgb(58, 33, 145)
HSLhsl(253, 63%, 35%)
HSVhsv(253, 77%, 57%)
CMYKcmyk(60%, 77.2%, 0%, 43.1%)
CIE-LABlab(23.77, 42.04, -57.34)
CIE-LCHlch(23.77, 71.10, 306.25°)
OKLaboklab(36.16% 0.0417 -0.1652)
OKLCHoklch(36.16% 0.17 284.2)
XYZxyz(7.3980, 4.0311, 27.1708)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2191 #789121
analogous
#214091 #3A2191 #722191
triadic
#3A2191 #913A21 #21913A
tetradic
#3A2191 #912140 #789121 #219172
square
#3A2191 #912140 #789121 #219172
split-complementary
#3A2191 #917221 #409121
monochromatic
#120A2D #26165F #3A2191 #4E2CC3 #7254D8

Accessibility & contrast

On white

11.63
#3A2191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A2191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2191
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2191#FFFFFF#000000##FFFFFF
##3A21911.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#044158
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2191;
/* rgb */ color: rgb(58, 33, 145);
/* oklch */ color: oklch(36.2% 0.170 284.2);
Tailwind
colors: {
  custom: {
    50: '#7b60b2',
    500: '#3a2191',
    950: '#000000',
  },
}
SCSS
$custom: #3a2191;
$custom-light: #7b60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2191",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 253.393,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.17041,
    "h": 284.2
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#3A2191
secondary
#A4BC52
accent
#E642C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2191

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

Preview Lab → · Contrast checker → · Palette generator →

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