#3B217A#3B217A

#3B217A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.142 H 290.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3B217A
RGBrgb(59, 33, 122)
HSLhsl(258, 57%, 30%)
HSVhsv(258, 73%, 48%)
CMYKcmyk(51.6%, 73%, 0%, 52.2%)
CIE-LABlab(21.66, 35.18, -46.36)
CIE-LCHlch(21.66, 58.20, 307.20°)
OKLaboklab(34.01% 0.0489 -0.133)
OKLCHoklch(34.01% 0.142 290.2)
XYZxyz(5.8593, 3.4224, 18.7604)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B217A #607A21
analogous
#21347A #3B217A #67217A
triadic
#3B217A #7A3B21 #217A3B
tetradic
#3B217A #7A2134 #607A21 #217A67
square
#3B217A #7A2134 #607A21 #217A67
split-complementary
#3B217A #7A6721 #347A21
monochromatic
#0C071A #24144A #3B217A #522EAA #6F48CD

Accessibility & contrast

On white

12.47
#3B217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3B217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B217A
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B217A#FFFFFF#000000##FFFFFF
##3B217A1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b217a;
/* rgb */ color: rgb(59, 33, 122);
/* oklch */ color: oklch(34.0% 0.142 290.2);
Tailwind
colors: {
  custom: {
    50: '#785fa1',
    500: '#3b217a',
    950: '#000000',
  },
}
SCSS
$custom: #3b217a;
$custom-light: #785fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b217a",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 257.528,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34014,
    "c": 0.14171,
    "h": 290.2
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#3B217A
secondary
#90AD4A
accent
#E147B4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3B217A

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

Preview Lab → · Contrast checker → · Palette generator →

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