#3A1571#3A1571

#3A1571 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.145 H 294.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3A1571
RGBrgb(58, 21, 113)
HSLhsl(264, 69%, 26%)
HSVhsv(264, 81%, 44%)
CMYKcmyk(48.7%, 81.4%, 0%, 55.7%)
CIE-LABlab(18.49, 38.60, -45.78)
CIE-LCHlch(18.49, 59.88, 310.14°)
OKLaboklab(31.49% 0.0607 -0.1313)
OKLCHoklch(31.49% 0.145 294.8)
XYZxyz(4.9929, 2.6280, 15.8638)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1571 #4C7115
analogous
#151E71 #3A1571 #681571
triadic
#3A1571 #713A15 #15713A
tetradic
#3A1571 #71151E #4C7115 #157168
square
#3A1571 #71151E #4C7115 #157168
split-complementary
#3A1571 #716815 #1E7115
monochromatic
#0D051A #200B3D #3A1571 #541FA5 #6F29D7

Accessibility & contrast

On white

13.77
#3A1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1571
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1571#FFFFFF#000000##FFFFFF
##3A15711.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#2A2F43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1571;
/* rgb */ color: rgb(58, 21, 113);
/* oklch */ color: oklch(31.5% 0.145 294.8);
Tailwind
colors: {
  custom: {
    50: '#77579b',
    500: '#3a1571',
    950: '#000000',
  },
}
SCSS
$custom: #3a1571;
$custom-light: #77579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1571",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 264.13,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31486,
    "c": 0.14462,
    "h": 294.8
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#3A1571
secondary
#7CA73B
accent
#EB3CA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1571

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

Preview Lab → · Contrast checker → · Palette generator →

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