#3215B3#3215B3

#3215B3 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.1% C 0.220 H 276.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3215B3
RGBrgb(50, 21, 179)
HSLhsl(251, 79%, 39%)
HSVhsv(251, 88%, 70%)
CMYKcmyk(72.1%, 88.3%, 0%, 29.8%)
CIE-LABlab(25.16, 56.37, -75.75)
CIE-LCHlch(25.16, 94.43, 306.66°)
OKLaboklab(38.07% 0.0242 -0.2188)
OKLCHoklch(38.07% 0.22 276.3)
XYZxyz(9.7176, 4.4682, 42.9894)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3215B3 #96B315
analogous
#1547B3 #3215B3 #8115B3
triadic
#3215B3 #B33215 #15B332
tetradic
#3215B3 #B31547 #96B315 #15B381
square
#3215B3 #B31547 #96B315 #15B381
split-complementary
#3215B3 #B38115 #47B315
monochromatic
#130845 #230F7C #3215B3 #4420E5 #7257EB

Accessibility & contrast

On white

11.09
#3215B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3215B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3215B3
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3215B3#FFFFFF#000000##FFFFFF
##3215B31.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0035B0
Tritanopia (blue-blind)
#004B69
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3215b3;
/* rgb */ color: rgb(50, 21, 179);
/* oklch */ color: oklch(38.1% 0.220 276.3);
Tailwind
colors: {
  custom: {
    50: '#805ccb',
    500: '#3215b3',
    950: '#000000',
  },
}
SCSS
$custom: #3215b3;
$custom-light: #805ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#3215b3",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 179
  },
  "hsl": {
    "h": 251.013,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38067,
    "c": 0.22013,
    "h": 276.3
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#3215B3
secondary
#B8CE56
accent
#F532D2
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3215B3

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

Preview Lab → · Contrast checker → · Palette generator →

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