#3A2084#3A2084

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

Color values

HEX#3A2084
RGBrgb(58, 32, 132)
HSLhsl(256, 61%, 32%)
HSVhsv(256, 76%, 52%)
CMYKcmyk(56.1%, 75.8%, 0%, 48.2%)
CIE-LABlab(22.30, 38.61, -51.65)
CIE-LCHlch(22.30, 64.49, 306.78°)
OKLaboklab(34.73% 0.0459 -0.1486)
OKLCHoklch(34.73% 0.156 287.2)
XYZxyz(6.4251, 3.5982, 22.1813)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2084 #6A8420
analogous
#203884 #3A2084 #6C2084
triadic
#3A2084 #843A20 #20843A
tetradic
#3A2084 #842038 #6A8420 #20846C
square
#3A2084 #842038 #6A8420 #20846C
split-complementary
#3A2084 #846C20 #388420
monochromatic
#0F0821 #241453 #3A2084 #502CB5 #6E4BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A2084#FFFFFF#000000##FFFFFF
##3A20841.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)
#003887
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#1B3B50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a2084;
/* rgb */ color: rgb(58, 32, 132);
/* oklch */ color: oklch(34.7% 0.156 287.2);
Tailwind
colors: {
  custom: {
    50: '#795ea9',
    500: '#3a2084',
    950: '#000000',
  },
}
SCSS
$custom: #3a2084;
$custom-light: #795ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2084",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 255.6,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34726,
    "c": 0.15551,
    "h": 287.2
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#3A2084
secondary
#9AB64A
accent
#E444BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A2084

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

Preview Lab → · Contrast checker → · Palette generator →

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