#3D1571#3D1571

#3D1571 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.145 H 296.9°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3D1571
RGBrgb(61, 21, 113)
HSLhsl(266, 69%, 26%)
HSVhsv(266, 81%, 44%)
CMYKcmyk(46%, 81.4%, 0%, 55.7%)
CIE-LABlab(18.89, 39.10, -45.11)
CIE-LCHlch(18.89, 59.69, 310.92°)
OKLaboklab(31.85% 0.0656 -0.1292)
OKLCHoklch(31.85% 0.145 296.9)
XYZxyz(5.1725, 2.7206, 15.8722)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1571 #497115
analogous
#151B71 #3D1571 #6B1571
triadic
#3D1571 #713D15 #15713D
tetradic
#3D1571 #71151B #497115 #15716B
square
#3D1571 #71151B #497115 #15716B
split-complementary
#3D1571 #716B15 #1B7115
monochromatic
#0E051A #210B3D #3D1571 #591FA5 #7529D7

Accessibility & contrast

On white

13.60
#3D1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1571
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1571#FFFFFF#000000##FFFFFF
##3D15711.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2F2E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d1571;
/* rgb */ color: rgb(61, 21, 113);
/* oklch */ color: oklch(31.9% 0.145 296.9);
Tailwind
colors: {
  custom: {
    50: '#79589b',
    500: '#3d1571',
    950: '#000000',
  },
}
SCSS
$custom: #3d1571;
$custom-light: #79589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1571",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 266.087,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31854,
    "c": 0.14489,
    "h": 296.9
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#3D1571
secondary
#78A73B
accent
#EB3C9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1571

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

Preview Lab → · Contrast checker → · Palette generator →

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