#3B217E#3B217E

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

Color values

HEX#3B217E
RGBrgb(59, 33, 126)
HSLhsl(257, 58%, 31%)
HSVhsv(257, 74%, 49%)
CMYKcmyk(53.2%, 73.8%, 0%, 50.6%)
CIE-LABlab(22.03, 36.40, -48.30)
CIE-LCHlch(22.03, 60.48, 307.00°)
OKLaboklab(34.39% 0.048 -0.1387)
OKLCHoklch(34.39% 0.147 289.1)
XYZxyz(6.1123, 3.5236, 20.0927)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B217E #647E21
analogous
#21357E #3B217E #69217E
triadic
#3B217E #7E3B21 #217E3B
tetradic
#3B217E #7E2135 #647E21 #217E69
square
#3B217E #7E2135 #647E21 #217E69
split-complementary
#3B217E #7E6921 #357E21
monochromatic
#0E081D #24144E #3B217E #522EAE #6F4AD0

Accessibility & contrast

On white

12.32
#3B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B217E
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B217E#FFFFFF#000000##FFFFFF
##3B217E1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#23394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b217e;
/* rgb */ color: rgb(59, 33, 126);
/* oklch */ color: oklch(34.4% 0.147 289.1);
Tailwind
colors: {
  custom: {
    50: '#785fa4',
    500: '#3b217e',
    950: '#000000',
  },
}
SCSS
$custom: #3b217e;
$custom-light: #785fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b217e",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 256.774,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34389,
    "c": 0.14678,
    "h": 289.1
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#3B217E
secondary
#94B14A
accent
#E246B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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