#3A1780#3A1780

#3A1780 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.160 H 289.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#3A1780
RGBrgb(58, 23, 128)
HSLhsl(260, 70%, 30%)
HSVhsv(260, 82%, 50%)
CMYKcmyk(54.7%, 82%, 0%, 49.8%)
CIE-LABlab(20.32, 41.92, -52.37)
CIE-LCHlch(20.32, 67.08, 308.68°)
OKLaboklab(33.22% 0.0542 -0.1506)
OKLCHoklch(33.22% 0.16 289.8)
XYZxyz(5.9465, 3.0706, 20.6972)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1780 #5D8017
analogous
#172980 #3A1780 #6F1780
triadic
#3A1780 #803A17 #17803A
tetradic
#3A1780 #801729 #5D8017 #17806F
square
#3A1780 #801729 #5D8017 #17806F
split-complementary
#3A1780 #806F17 #298017
monochromatic
#0C051A #220E4C #3A1780 #5220B4 #6D36DB

Accessibility & contrast

On white

13.01
#3A1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1780
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1780#FFFFFF#000000##FFFFFF
##3A17801.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#1F364C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1780;
/* rgb */ color: rgb(58, 23, 128);
/* oklch */ color: oklch(33.2% 0.160 289.8);
Tailwind
colors: {
  custom: {
    50: '#7959a6',
    500: '#3a1780',
    950: '#000000',
  },
}
SCSS
$custom: #3a1780;
$custom-light: #7959a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1780",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 260,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33224,
    "c": 0.16003,
    "h": 289.8
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#3A1780
secondary
#8DB43E
accent
#EC3BB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1780

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

Preview Lab → · Contrast checker → · Palette generator →

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