#3A2076#3A2076

#3A2076 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.138 H 290.9°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3A2076
RGBrgb(58, 32, 118)
HSLhsl(258, 57%, 29%)
HSVhsv(258, 73%, 46%)
CMYKcmyk(50.8%, 72.9%, 0%, 53.7%)
CIE-LABlab(20.98, 34.35, -44.92)
CIE-LCHlch(20.98, 56.54, 307.40°)
OKLaboklab(33.39% 0.0491 -0.1288)
OKLCHoklch(33.39% 0.138 290.9)
XYZxyz(5.5305, 3.2404, 17.4701)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2076 #5C7620
analogous
#203176 #3A2076 #652076
triadic
#3A2076 #763A20 #20763A
tetradic
#3A2076 #762031 #5C7620 #207665
square
#3A2076 #762031 #5C7620 #207665
split-complementary
#3A2076 #766520 #317620
monochromatic
#0C0718 #221346 #3A2076 #522DA6 #6D44CC

Accessibility & contrast

On white

12.74
#3A2076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A2076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2076
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2076#FFFFFF#000000##FFFFFF
##3A20761.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2076;
/* rgb */ color: rgb(58, 32, 118);
/* oklch */ color: oklch(33.4% 0.138 290.9);
Tailwind
colors: {
  custom: {
    50: '#775e9e',
    500: '#3a2076',
    950: '#000000',
  },
}
SCSS
$custom: #3a2076;
$custom-light: #775e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2076",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 258.14,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3339,
    "c": 0.13786,
    "h": 290.9
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#3A2076
secondary
#8CA948
accent
#E147B2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A2076

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

Preview Lab → · Contrast checker → · Palette generator →

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