#3D217F#3D217F

#3D217F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.148 H 290.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3D217F
RGBrgb(61, 33, 127)
HSLhsl(258, 59%, 31%)
HSVhsv(258, 74%, 50%)
CMYKcmyk(52%, 74%, 0%, 50.2%)
CIE-LABlab(22.34, 37.05, -48.41)
CIE-LCHlch(22.34, 60.96, 307.43°)
OKLaboklab(34.69% 0.0509 -0.139)
OKLCHoklch(34.69% 0.148 290.1)
XYZxyz(6.2980, 3.6119, 20.4399)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D217F #637F21
analogous
#21347F #3D217F #6C217F
triadic
#3D217F #7F3D21 #217F3D
tetradic
#3D217F #7F2134 #637F21 #217F6C
square
#3D217F #7F2134 #637F21 #217F6C
split-complementary
#3D217F #7F6C21 #347F21
monochromatic
#0E081E #26144E #3D217F #542EB0 #724AD0

Accessibility & contrast

On white

12.19
#3D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D217F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D217F#FFFFFF#000000##FFFFFF
##3D217F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#263A4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d217f;
/* rgb */ color: rgb(61, 33, 127);
/* oklch */ color: oklch(34.7% 0.148 290.1);
Tailwind
colors: {
  custom: {
    50: '#7a5fa5',
    500: '#3d217f',
    950: '#000000',
  },
}
SCSS
$custom: #3d217f;
$custom-light: #7a5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d217f",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 257.872,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.14799,
    "h": 290.1
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#3D217F
secondary
#93B24A
accent
#E246B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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