#3D1584#3D1584

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

Color values

HEX#3D1584
RGBrgb(61, 21, 132)
HSLhsl(262, 73%, 30%)
HSVhsv(262, 84%, 52%)
CMYKcmyk(53.8%, 84.1%, 0%, 48.2%)
CIE-LABlab(20.81, 44.31, -54.09)
CIE-LCHlch(20.81, 69.92, 309.32°)
OKLaboklab(33.77% 0.0591 -0.1555)
OKLCHoklch(33.77% 0.166 290.8)
XYZxyz(6.3563, 3.1941, 22.1069)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1584 #5C8415
analogous
#152484 #3D1584 #751584
triadic
#3D1584 #843D15 #15843D
tetradic
#3D1584 #841524 #5C8415 #158475
square
#3D1584 #841524 #5C8415 #158475
split-complementary
#3D1584 #847515 #248415
monochromatic
#0C041A #250D4F #3D1584 #551DB9 #7235DF

Accessibility & contrast

On white

12.81
#3D1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1584
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1584#FFFFFF#000000##FFFFFF
##3D15841.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#23364E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1584;
/* rgb */ color: rgb(61, 21, 132);
/* oklch */ color: oklch(33.8% 0.166 290.8);
Tailwind
colors: {
  custom: {
    50: '#7b59a9',
    500: '#3d1584',
    950: '#000000',
  },
}
SCSS
$custom: #3d1584;
$custom-light: #7b59a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1584",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 261.622,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.16635,
    "h": 290.8
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#3D1584
secondary
#8CB93C
accent
#EF39AD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1584

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

Preview Lab → · Contrast checker → · Palette generator →

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