#3A2071#3A2071

#3A2071 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.131 H 292.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3A2071
RGBrgb(58, 32, 113)
HSLhsl(259, 56%, 28%)
HSVhsv(259, 72%, 44%)
CMYKcmyk(48.7%, 71.7%, 0%, 55.7%)
CIE-LABlab(20.54, 32.83, -42.43)
CIE-LCHlch(20.54, 53.65, 307.73°)
OKLaboklab(32.93% 0.0501 -0.1215)
OKLCHoklch(32.93% 0.131 292.4)
XYZxyz(5.2412, 3.1246, 15.9465)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2071 #577120
analogous
#202E71 #3A2071 #622071
triadic
#3A2071 #713A20 #20713A
tetradic
#3A2071 #71202E #577120 #207162
square
#3A2071 #71202E #577120 #207162
split-complementary
#3A2071 #716220 #2E7120
monochromatic
#0C0718 #221241 #3A2071 #522EA1 #6D42C9

Accessibility & contrast

On white

12.92
#3A2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2071
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2071#FFFFFF#000000##FFFFFF
##3A20711.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#293445
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a2071;
/* rgb */ color: rgb(58, 32, 113);
/* oklch */ color: oklch(32.9% 0.131 292.4);
Tailwind
colors: {
  custom: {
    50: '#765d9b',
    500: '#3a2071',
    950: '#000000',
  },
}
SCSS
$custom: #3a2071;
$custom-light: #765d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2071",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 259.259,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32934,
    "c": 0.13142,
    "h": 292.4
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#3A2071
secondary
#87A548
accent
#DF49AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A2071

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

Preview Lab → · Contrast checker → · Palette generator →

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