#3A1561#3A1561

#3A1561 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.126 H 301.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#3A1561
RGBrgb(58, 21, 97)
HSLhsl(269, 64%, 23%)
HSVhsv(269, 78%, 38%)
CMYKcmyk(40.2%, 78.4%, 0%, 62%)
CIE-LABlab(16.98, 34.18, -37.76)
CIE-LCHlch(16.98, 50.93, 312.15°)
OKLaboklab(29.97% 0.0652 -0.1077)
OKLCHoklch(29.97% 0.126 301.2)
XYZxyz(4.1702, 2.2989, 11.5310)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1561 #3C6115
analogous
#151661 #3A1561 #601561
triadic
#3A1561 #613A15 #15613A
tetradic
#3A1561 #611516 #3C6115 #156160
square
#3A1561 #611516 #3C6115 #156160
split-complementary
#3A1561 #616015 #166115
monochromatic
#0F0519 #1C0A2F #3A1561 #582093 #762BC6

Accessibility & contrast

On white

14.39
#3A1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1561
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1561#FFFFFF#000000##FFFFFF
##3A15611.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#31283A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1561;
/* rgb */ color: rgb(58, 21, 97);
/* oklch */ color: oklch(30.0% 0.126 301.2);
Tailwind
colors: {
  custom: {
    50: '#74568f',
    500: '#3a1561',
    950: '#000000',
  },
}
SCSS
$custom: #3a1561;
$custom-light: #74568f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1561",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 269.211,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29966,
    "c": 0.12591,
    "h": 301.2
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#3A1561
secondary
#6A983A
accent
#E74096
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1561

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

Preview Lab → · Contrast checker → · Palette generator →

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