#3D1581#3D1581

#3D1581 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.163 H 291.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3D1581
RGBrgb(61, 21, 129)
HSLhsl(262, 72%, 29%)
HSVhsv(262, 84%, 51%)
CMYKcmyk(52.7%, 83.7%, 0%, 49.4%)
CIE-LABlab(20.49, 43.48, -52.71)
CIE-LCHlch(20.49, 68.33, 309.52°)
OKLaboklab(33.46% 0.0602 -0.1515)
OKLCHoklch(33.46% 0.163 291.7)
XYZxyz(6.1540, 3.1132, 21.0413)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1581 #598115
analogous
#152381 #3D1581 #731581
triadic
#3D1581 #813D15 #15813D
tetradic
#3D1581 #811523 #598115 #158173
square
#3D1581 #811523 #598115 #158173
split-complementary
#3D1581 #817315 #238115
monochromatic
#0C041A #240C4C #3D1581 #561EB6 #7233DE

Accessibility & contrast

On white

12.94
#3D1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1581
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1581#FFFFFF#000000##FFFFFF
##3D15811.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#25354C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1581;
/* rgb */ color: rgb(61, 21, 129);
/* oklch */ color: oklch(33.5% 0.163 291.7);
Tailwind
colors: {
  custom: {
    50: '#7b59a7',
    500: '#3d1581',
    950: '#000000',
  },
}
SCSS
$custom: #3d1581;
$custom-light: #7b59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1581",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 262.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33455,
    "c": 0.16298,
    "h": 291.7
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#3D1581
secondary
#89B63C
accent
#EF39AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1581

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

Preview Lab → · Contrast checker → · Palette generator →

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