#3215A1#3215A1

#3215A1 is a dark, highly saturated violet. Relative luminance 0.038; OKLCH L 35.9% C 0.200 H 278.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3215A1
RGBrgb(50, 21, 161)
HSLhsl(252, 77%, 36%)
HSVhsv(252, 87%, 63%)
CMYKcmyk(68.9%, 87%, 0%, 36.9%)
CIE-LABlab(22.95, 51.35, -68.55)
CIE-LCHlch(22.95, 85.65, 306.84°)
OKLaboklab(35.93% 0.0304 -0.1979)
OKLCHoklch(35.93% 0.2 278.7)
XYZxyz(8.0145, 3.7870, 34.0199)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3215A1 #84A115
analogous
#153EA1 #3215A1 #7815A1
triadic
#3215A1 #A13215 #15A132
tetradic
#3215A1 #A1153E #84A115 #15A178
square
#3215A1 #A1153E #84A115 #15A178
split-complementary
#3215A1 #A17815 #3EA115
monochromatic
#100735 #210E6B #3215A1 #431CD7 #6A49E7

Accessibility & contrast

On white

11.95
#3215A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3215A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3215A1
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3215A1#FFFFFF#000000##FFFFFF
##3215A11.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3215a1;
/* rgb */ color: rgb(50, 21, 161);
/* oklch */ color: oklch(35.9% 0.200 278.7);
Tailwind
colors: {
  custom: {
    50: '#7c5abe',
    500: '#3215a1',
    950: '#000000',
  },
}
SCSS
$custom: #3215a1;
$custom-light: #7c5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#3215a1",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 252.429,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35932,
    "c": 0.20025,
    "h": 278.7
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#3215A1
secondary
#AEC849
accent
#F334CC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3215A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3215A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva