#3B217B#3B217B

#3B217B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.143 H 289.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3B217B
RGBrgb(59, 33, 123)
HSLhsl(257, 58%, 31%)
HSVhsv(257, 73%, 48%)
CMYKcmyk(52%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.75, 35.49, -46.84)
CIE-LCHlch(21.75, 58.77, 307.15°)
OKLaboklab(34.11% 0.0487 -0.1344)
OKLCHoklch(34.11% 0.143 289.9)
XYZxyz(5.9216, 3.4473, 19.0884)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B217B #617B21
analogous
#21347B #3B217B #68217B
triadic
#3B217B #7B3B21 #217B3B
tetradic
#3B217B #7B2134 #617B21 #217B68
square
#3B217B #7B2134 #617B21 #217B68
split-complementary
#3B217B #7B6821 #347B21
monochromatic
#0D071A #24144B #3B217B #522EAB #6F48CE

Accessibility & contrast

On white

12.43
#3B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3B217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B217B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B217B#FFFFFF#000000##FFFFFF
##3B217B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#25384B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b217b;
/* rgb */ color: rgb(59, 33, 123);
/* oklch */ color: oklch(34.1% 0.143 289.9);
Tailwind
colors: {
  custom: {
    50: '#785fa2',
    500: '#3b217b',
    950: '#000000',
  },
}
SCSS
$custom: #3b217b;
$custom-light: #785fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b217b",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 257.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.14298,
    "h": 289.9
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#3B217B
secondary
#91AE4A
accent
#E147B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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