#3A1580#3A1580

#3A1580 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.162 H 290.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3A1580
RGBrgb(58, 21, 128)
HSLhsl(261, 72%, 29%)
HSVhsv(261, 84%, 50%)
CMYKcmyk(54.7%, 83.6%, 0%, 49.8%)
CIE-LABlab(20.02, 42.81, -52.87)
CIE-LCHlch(20.02, 68.02, 309.00°)
OKLaboklab(33.01% 0.0556 -0.152)
OKLCHoklch(33.01% 0.162 290.1)
XYZxyz(5.9082, 2.9941, 20.6845)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1580 #5B8015
analogous
#152580 #3A1580 #701580
triadic
#3A1580 #803A15 #15803A
tetradic
#3A1580 #801525 #5B8015 #158070
square
#3A1580 #801525 #5B8015 #158070
split-complementary
#3A1580 #807015 #258015
monochromatic
#0C041A #220C4B #3A1580 #521EB5 #6D32DD

Accessibility & contrast

On white

13.13
#3A1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1580
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1580#FFFFFF#000000##FFFFFF
##3A15801.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#1F354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1580;
/* rgb */ color: rgb(58, 21, 128);
/* oklch */ color: oklch(33.0% 0.162 290.1);
Tailwind
colors: {
  custom: {
    50: '#7958a6',
    500: '#3a1580',
    950: '#000000',
  },
}
SCSS
$custom: #3a1580;
$custom-light: #7958a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1580",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 260.748,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.16186,
    "h": 290.1
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#3A1580
secondary
#8BB53C
accent
#EF39B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1580

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

Preview Lab → · Contrast checker → · Palette generator →

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