#3D1881#3D1881

#3D1881 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.160 H 291.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3D1881
RGBrgb(61, 24, 129)
HSLhsl(261, 69%, 30%)
HSVhsv(261, 81%, 51%)
CMYKcmyk(52.7%, 81.4%, 0%, 49.4%)
CIE-LABlab(20.94, 42.17, -51.97)
CIE-LCHlch(20.94, 66.93, 309.06°)
OKLaboklab(33.77% 0.058 -0.1493)
OKLCHoklch(33.77% 0.16 291.2)
XYZxyz(6.2124, 3.2301, 21.0608)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1881 #5C8118
analogous
#182781 #3D1881 #721881
triadic
#3D1881 #813D18 #18813D
tetradic
#3D1881 #811827 #5C8118 #188172
square
#3D1881 #811827 #5C8118 #188172
split-complementary
#3D1881 #817218 #278118
monochromatic
#0C051A #250E4D #3D1881 #5522B5 #7239DA

Accessibility & contrast

On white

12.76
#3D1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1881
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1881#FFFFFF#000000##FFFFFF
##3D18811.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1881;
/* rgb */ color: rgb(61, 24, 129);
/* oklch */ color: oklch(33.8% 0.160 291.2);
Tailwind
colors: {
  custom: {
    50: '#7b5aa7',
    500: '#3d1881',
    950: '#000000',
  },
}
SCSS
$custom: #3d1881;
$custom-light: #7b5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1881",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 261.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.33768,
    "c": 0.1602,
    "h": 291.2
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#3D1881
secondary
#8CB540
accent
#EB3CAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1881

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

Preview Lab → · Contrast checker → · Palette generator →

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