#3D217A#3D217A

#3D217A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.142 H 291.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3D217A
RGBrgb(61, 33, 122)
HSLhsl(259, 57%, 30%)
HSVhsv(259, 73%, 48%)
CMYKcmyk(50%, 73%, 0%, 52.2%)
CIE-LABlab(21.89, 35.55, -45.98)
CIE-LCHlch(21.89, 58.12, 307.71°)
OKLaboklab(34.23% 0.052 -0.1318)
OKLCHoklch(34.23% 0.142 291.5)
XYZxyz(5.9802, 3.4847, 18.7661)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D217A #5E7A21
analogous
#21327A #3D217A #69217A
triadic
#3D217A #7A3D21 #217A3D
tetradic
#3D217A #7A2132 #5E7A21 #217A69
square
#3D217A #7A2132 #5E7A21 #217A69
split-complementary
#3D217A #7A6921 #327A21
monochromatic
#0D071A #25144A #3D217A #552EAA #7248CD

Accessibility & contrast

On white

12.37
#3D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3D217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D217A
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D217A#FFFFFF#000000##FFFFFF
##3D217A1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#29384B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d217a;
/* rgb */ color: rgb(61, 33, 122);
/* oklch */ color: oklch(34.2% 0.142 291.5);
Tailwind
colors: {
  custom: {
    50: '#795fa1',
    500: '#3d217a',
    950: '#000000',
  },
}
SCSS
$custom: #3d217a;
$custom-light: #795fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d217a",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 258.876,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34229,
    "c": 0.1417,
    "h": 291.5
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#3D217A
secondary
#8EAD4A
accent
#E147B0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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