#3D217C#3D217C

#3D217C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.144 H 290.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#3D217C
RGBrgb(61, 33, 124)
HSLhsl(258, 58%, 31%)
HSVhsv(258, 73%, 49%)
CMYKcmyk(50.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(22.07, 36.15, -46.95)
CIE-LCHlch(22.07, 59.26, 307.59°)
OKLaboklab(34.41% 0.0516 -0.1347)
OKLCHoklch(34.41% 0.144 290.9)
XYZxyz(6.1054, 3.5348, 19.4255)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D217C #607C21
analogous
#21327C #3D217C #6A217C
triadic
#3D217C #7C3D21 #217C3D
tetradic
#3D217C #7C2132 #607C21 #217C6A
square
#3D217C #7C2132 #607C21 #217C6A
split-complementary
#3D217C #7C6A21 #327C21
monochromatic
#0D071B #25144C #3D217C #552EAC #7249CF

Accessibility & contrast

On white

12.30
#3D217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D217C
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D217C#FFFFFF#000000##FFFFFF
##3D217C1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#28394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d217c;
/* rgb */ color: rgb(61, 33, 124);
/* oklch */ color: oklch(34.4% 0.144 290.9);
Tailwind
colors: {
  custom: {
    50: '#795fa3',
    500: '#3d217c',
    950: '#000000',
  },
}
SCSS
$custom: #3d217c;
$custom-light: #795fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d217c",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 258.462,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.14422,
    "h": 290.9
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#3D217C
secondary
#90AF4A
accent
#E147B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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