#3A1584#3A1584

#3A1584 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.166 H 289.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3A1584
RGBrgb(58, 21, 132)
HSLhsl(260, 73%, 30%)
HSVhsv(260, 84%, 52%)
CMYKcmyk(56.1%, 84.1%, 0%, 48.2%)
CIE-LABlab(20.45, 43.93, -54.70)
CIE-LCHlch(20.45, 70.15, 308.77°)
OKLaboklab(33.43% 0.0541 -0.1574)
OKLCHoklch(33.43% 0.166 289)
XYZxyz(6.1767, 3.1015, 22.0985)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1584 #5F8415
analogous
#152884 #3A1584 #711584
triadic
#3A1584 #843A15 #15843A
tetradic
#3A1584 #841528 #5F8415 #158471
square
#3A1584 #841528 #5F8415 #158471
split-complementary
#3A1584 #847115 #288415
monochromatic
#0C041A #230D4F #3A1584 #511DB9 #6D35DF

Accessibility & contrast

On white

12.96
#3A1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1584
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1584#FFFFFF#000000##FFFFFF
##3A15841.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#1C374E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1584;
/* rgb */ color: rgb(58, 21, 132);
/* oklch */ color: oklch(33.4% 0.166 289.0);
Tailwind
colors: {
  custom: {
    50: '#7a59a9',
    500: '#3a1584',
    950: '#000000',
  },
}
SCSS
$custom: #3a1584;
$custom-light: #7a59a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1584",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 260,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33435,
    "c": 0.16641,
    "h": 289
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#3A1584
secondary
#8FB93C
accent
#EF39B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1584

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

Preview Lab → · Contrast checker → · Palette generator →

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