#3B216D#3B216D

#3B216D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.125 H 294.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3B216D
RGBrgb(59, 33, 109)
HSLhsl(261, 54%, 28%)
HSVhsv(261, 70%, 43%)
CMYKcmyk(45.9%, 69.7%, 0%, 57.3%)
CIE-LABlab(20.52, 31.24, -39.86)
CIE-LCHlch(20.52, 50.64, 308.09°)
OKLaboklab(32.85% 0.0511 -0.1139)
OKLCHoklch(32.85% 0.125 294.2)
XYZxyz(5.1071, 3.1215, 14.7985)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B216D #536D21
analogous
#212D6D #3B216D #61216D
triadic
#3B216D #6D3B21 #216D3B
tetradic
#3B216D #6D212D #536D21 #216D61
square
#3B216D #6D212D #536D21 #216D61
split-complementary
#3B216D #6D6121 #2D6D21
monochromatic
#0D0717 #22133E #3B216D #542F9C #6F42C6

Accessibility & contrast

On white

12.93
#3B216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3B216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B216D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B216D#FFFFFF#000000##FFFFFF
##3B216D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#2D3344
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b216d;
/* rgb */ color: rgb(59, 33, 109);
/* oklch */ color: oklch(32.8% 0.125 294.2);
Tailwind
colors: {
  custom: {
    50: '#765e97',
    500: '#3b216d',
    950: '#000000',
  },
}
SCSS
$custom: #3b216d;
$custom-light: #765e97;
$custom-dark: #000000;
JSON
{
  "hex": "#3b216d",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 260.526,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32845,
    "c": 0.12487,
    "h": 294.2
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#3B216D
secondary
#83A149
accent
#DD4BAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B216D

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

Preview Lab → · Contrast checker → · Palette generator →

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