#3D217D#3D217D

#3D217D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.145 H 290.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3D217D
RGBrgb(61, 33, 125)
HSLhsl(258, 58%, 31%)
HSVhsv(258, 74%, 49%)
CMYKcmyk(51.2%, 73.6%, 0%, 51%)
CIE-LABlab(22.16, 36.45, -47.44)
CIE-LCHlch(22.16, 59.83, 307.54°)
OKLaboklab(34.51% 0.0513 -0.1361)
OKLCHoklch(34.51% 0.145 290.7)
XYZxyz(6.1689, 3.5602, 19.7602)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D217D #617D21
analogous
#21337D #3D217D #6B217D
triadic
#3D217D #7D3D21 #217D3D
tetradic
#3D217D #7D2133 #617D21 #217D6B
square
#3D217D #7D2133 #617D21 #217D6B
split-complementary
#3D217D #7D6B21 #337D21
monochromatic
#0E071C #25144D #3D217D #552EAD #7249CF

Accessibility & contrast

On white

12.27
#3D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D217D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D217D#FFFFFF#000000##FFFFFF
##3D217D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#28394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d217d;
/* rgb */ color: rgb(61, 33, 125);
/* oklch */ color: oklch(34.5% 0.145 290.7);
Tailwind
colors: {
  custom: {
    50: '#795fa3',
    500: '#3d217d',
    950: '#000000',
  },
}
SCSS
$custom: #3d217d;
$custom-light: #795fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d217d",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 258.261,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34506,
    "c": 0.14548,
    "h": 290.7
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#3D217D
secondary
#91B04A
accent
#E146B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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