#3D1580#3D1580

#3D1580 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.162 H 292.0°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#3D1580
RGBrgb(61, 21, 128)
HSLhsl(262, 72%, 29%)
HSVhsv(262, 84%, 50%)
CMYKcmyk(52.3%, 83.6%, 0%, 49.8%)
CIE-LABlab(20.39, 43.21, -52.25)
CIE-LCHlch(20.39, 67.80, 309.59°)
OKLaboklab(33.35% 0.0605 -0.1501)
OKLCHoklch(33.35% 0.162 292)
XYZxyz(6.0878, 3.0867, 20.6929)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1580 #588015
analogous
#152380 #3D1580 #731580
triadic
#3D1580 #803D15 #15803D
tetradic
#3D1580 #801523 #588015 #158073
square
#3D1580 #801523 #588015 #158073
split-complementary
#3D1580 #807315 #238015
monochromatic
#0D041A #240C4B #3D1580 #561EB5 #7232DD

Accessibility & contrast

On white

12.98
#3D1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1580
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1580#FFFFFF#000000##FFFFFF
##3D15801.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#26354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1580;
/* rgb */ color: rgb(61, 21, 128);
/* oklch */ color: oklch(33.4% 0.162 292.0);
Tailwind
colors: {
  custom: {
    50: '#7b59a6',
    500: '#3d1580',
    950: '#000000',
  },
}
SCSS
$custom: #3d1580;
$custom-light: #7b59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1580",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 262.43,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.16186,
    "h": 292
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#3D1580
secondary
#88B53C
accent
#EF39AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1580

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

Preview Lab → · Contrast checker → · Palette generator →

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