#3D1980#3D1980

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

Color values

HEX#3D1980
RGBrgb(61, 25, 128)
HSLhsl(261, 67%, 30%)
HSVhsv(261, 80%, 50%)
CMYKcmyk(52.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(21.00, 41.43, -51.24)
CIE-LCHlch(21.00, 65.89, 308.96°)
OKLaboklab(33.78% 0.0576 -0.1472)
OKLCHoklch(33.78% 0.158 291.4)
XYZxyz(6.1673, 3.2456, 20.7194)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1980 #5C8019
analogous
#192880 #3D1980 #711980
triadic
#3D1980 #803D19 #19803D
tetradic
#3D1980 #801928 #5C8019 #198071
square
#3D1980 #801928 #5C8019 #198071
split-complementary
#3D1980 #807119 #288019
monochromatic
#0C051A #250F4D #3D1980 #5523B3 #723BD9

Accessibility & contrast

On white

12.73
#3D1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1980
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1980#FFFFFF#000000##FFFFFF
##3D19801.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1980;
/* rgb */ color: rgb(61, 25, 128);
/* oklch */ color: oklch(33.8% 0.158 291.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ba6',
    500: '#3d1980',
    950: '#000000',
  },
}
SCSS
$custom: #3d1980;
$custom-light: #7b5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1980",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 260.971,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.15806,
    "h": 291.4
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#3D1980
secondary
#8CB441
accent
#EA3EAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1980

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

Preview Lab → · Contrast checker → · Palette generator →

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