#3D217B#3D217B

#3D217B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.143 H 291.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#3D217B
RGBrgb(61, 33, 123)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 73%, 48%)
CMYKcmyk(50.4%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.98, 35.85, -46.47)
CIE-LCHlch(21.98, 58.69, 307.65°)
OKLaboklab(34.32% 0.0518 -0.1333)
OKLCHoklch(34.32% 0.143 291.2)
XYZxyz(6.0425, 3.5096, 19.0941)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D217B #5F7B21
analogous
#21327B #3D217B #6A217B
triadic
#3D217B #7B3D21 #217B3D
tetradic
#3D217B #7B2132 #5F7B21 #217B6A
square
#3D217B #7B2132 #5F7B21 #217B6A
split-complementary
#3D217B #7B6A21 #327B21
monochromatic
#0D071A #25144B #3D217B #552EAB #7248CE

Accessibility & contrast

On white

12.34
#3D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D217B
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D217B#FFFFFF#000000##FFFFFF
##3D217B1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#29384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d217b;
/* rgb */ color: rgb(61, 33, 123);
/* oklch */ color: oklch(34.3% 0.143 291.2);
Tailwind
colors: {
  custom: {
    50: '#795fa2',
    500: '#3d217b',
    950: '#000000',
  },
}
SCSS
$custom: #3d217b;
$custom-light: #795fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d217b",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 258.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34321,
    "c": 0.14296,
    "h": 291.2
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#3D217B
secondary
#8FAE4A
accent
#E147B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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