#3D1981#3D1981

#3D1981 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.159 H 291.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3D1981
RGBrgb(61, 25, 129)
HSLhsl(261, 68%, 30%)
HSVhsv(261, 81%, 51%)
CMYKcmyk(52.7%, 80.6%, 0%, 49.4%)
CIE-LABlab(21.10, 41.71, -51.71)
CIE-LCHlch(21.10, 66.43, 308.89°)
OKLaboklab(33.88% 0.0572 -0.1486)
OKLCHoklch(33.88% 0.159 291.1)
XYZxyz(6.2334, 3.2721, 21.0678)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1981 #5D8119
analogous
#192981 #3D1981 #711981
triadic
#3D1981 #813D19 #19813D
tetradic
#3D1981 #811929 #5D8119 #198171
square
#3D1981 #811929 #5D8119 #198171
split-complementary
#3D1981 #817119 #298119
monochromatic
#0D051A #250F4E #3D1981 #5523B4 #723BD9

Accessibility & contrast

On white

12.69
#3D1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1981
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1981#FFFFFF#000000##FFFFFF
##3D19811.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#25374D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1981;
/* rgb */ color: rgb(61, 25, 129);
/* oklch */ color: oklch(33.9% 0.159 291.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ba7',
    500: '#3d1981',
    950: '#000000',
  },
}
SCSS
$custom: #3d1981;
$custom-light: #7b5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1981",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 260.769,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33878,
    "c": 0.15922,
    "h": 291.1
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#3D1981
secondary
#8DB541
accent
#EA3DAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1981

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

Preview Lab → · Contrast checker → · Palette generator →

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