#3D1780#3D1780

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

Color values

HEX#3D1780
RGBrgb(61, 23, 128)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 82%, 50%)
CMYKcmyk(52.3%, 82%, 0%, 49.8%)
CIE-LABlab(20.69, 42.34, -51.76)
CIE-LCHlch(20.69, 66.87, 309.28°)
OKLaboklab(33.56% 0.0591 -0.1487)
OKLCHoklch(33.56% 0.16 291.7)
XYZxyz(6.1260, 3.1632, 20.7057)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1780 #5A8017
analogous
#172680 #3D1780 #711780
triadic
#3D1780 #803D17 #17803D
tetradic
#3D1780 #801726 #5A8017 #178071
square
#3D1780 #801726 #5A8017 #178071
split-complementary
#3D1780 #807117 #268017
monochromatic
#0C051A #240E4C #3D1780 #5620B4 #7236DB

Accessibility & contrast

On white

12.86
#3D1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1780
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1780#FFFFFF#000000##FFFFFF
##3D17801.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#26354C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1780;
/* rgb */ color: rgb(61, 23, 128);
/* oklch */ color: oklch(33.6% 0.160 291.7);
Tailwind
colors: {
  custom: {
    50: '#7b5aa6',
    500: '#3d1780',
    950: '#000000',
  },
}
SCSS
$custom: #3d1780;
$custom-light: #7b5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1780",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 261.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33558,
    "c": 0.16002,
    "h": 291.7
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#3D1780
secondary
#8AB43E
accent
#EC3BAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1780

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

Preview Lab → · Contrast checker → · Palette generator →

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