#3D1681#3D1681

#3D1681 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.162 H 291.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#3D1681
RGBrgb(61, 22, 129)
HSLhsl(262, 71%, 30%)
HSVhsv(262, 83%, 51%)
CMYKcmyk(52.7%, 82.9%, 0%, 49.4%)
CIE-LABlab(20.64, 43.06, -52.47)
CIE-LCHlch(20.64, 67.88, 309.37°)
OKLaboklab(33.56% 0.0595 -0.1508)
OKLCHoklch(33.56% 0.162 291.5)
XYZxyz(6.1727, 3.1507, 21.0475)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1681 #5A8116
analogous
#162581 #3D1681 #731681
triadic
#3D1681 #813D16 #16813D
tetradic
#3D1681 #811625 #5A8116 #168173
square
#3D1681 #811625 #5A8116 #168173
split-complementary
#3D1681 #817316 #258116
monochromatic
#0C041A #240D4D #3D1681 #561FB5 #7235DD

Accessibility & contrast

On white

12.88
#3D1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1681
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1681#FFFFFF#000000##FFFFFF
##3D16811.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1681;
/* rgb */ color: rgb(61, 22, 129);
/* oklch */ color: oklch(33.6% 0.162 291.5);
Tailwind
colors: {
  custom: {
    50: '#7b59a7',
    500: '#3d1681',
    950: '#000000',
  },
}
SCSS
$custom: #3d1681;
$custom-light: #7b59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1681",
  "rgb": {
    "r": 61,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 261.869,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33556,
    "c": 0.16208,
    "h": 291.5
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#3D1681
secondary
#8AB63D
accent
#EE3AAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1681

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

Preview Lab → · Contrast checker → · Palette generator →

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