#3A1980#3A1980

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

Color values

HEX#3A1980
RGBrgb(58, 25, 128)
HSLhsl(259, 67%, 30%)
HSVhsv(259, 80%, 50%)
CMYKcmyk(54.7%, 80.5%, 0%, 49.8%)
CIE-LABlab(20.65, 40.99, -51.84)
CIE-LCHlch(20.65, 66.09, 308.34°)
OKLaboklab(33.45% 0.0527 -0.1491)
OKLCHoklch(33.45% 0.158 289.5)
XYZxyz(5.9877, 3.1530, 20.7110)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1980 #5F8019
analogous
#192C80 #3A1980 #6D1980
triadic
#3A1980 #803A19 #19803A
tetradic
#3A1980 #80192C #5F8019 #19806D
square
#3A1980 #80192C #5F8019 #19806D
split-complementary
#3A1980 #806D19 #2C8019
monochromatic
#0C051A #230F4D #3A1980 #5123B3 #6D3BD9

Accessibility & contrast

On white

12.88
#3A1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1980
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1980#FFFFFF#000000##FFFFFF
##3A19801.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#1F374C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1980;
/* rgb */ color: rgb(58, 25, 128);
/* oklch */ color: oklch(33.4% 0.158 289.5);
Tailwind
colors: {
  custom: {
    50: '#795aa6',
    500: '#3a1980',
    950: '#000000',
  },
}
SCSS
$custom: #3a1980;
$custom-light: #795aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1980",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 259.223,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.1581,
    "h": 289.5
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#3A1980
secondary
#8FB441
accent
#EA3EB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1980

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

Preview Lab → · Contrast checker → · Palette generator →

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