#3217B3#3217B3

#3217B3 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.2% C 0.219 H 276.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3217B3
RGBrgb(50, 23, 179)
HSLhsl(250, 77%, 40%)
HSVhsv(250, 87%, 70%)
CMYKcmyk(72.1%, 87.2%, 0%, 29.8%)
CIE-LABlab(25.40, 55.68, -75.37)
CIE-LCHlch(25.40, 93.70, 306.45°)
OKLaboklab(38.22% 0.0236 -0.2177)
OKLCHoklch(38.22% 0.219 276.2)
XYZxyz(9.7558, 4.5446, 43.0022)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3217B3 #98B317
analogous
#174AB3 #3217B3 #8017B3
triadic
#3217B3 #B33217 #17B332
tetradic
#3217B3 #B3174A #98B317 #17B380
square
#3217B3 #B3174A #98B317 #17B380
split-complementary
#3217B3 #B38017 #4AB317
monochromatic
#140947 #23107D #3217B3 #4524E3 #735BEA

Accessibility & contrast

On white

11.00
#3217B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3217B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3217B3
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3217B3#FFFFFF#000000##FFFFFF
##3217B31.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3217b3;
/* rgb */ color: rgb(50, 23, 179);
/* oklch */ color: oklch(38.2% 0.219 276.2);
Tailwind
colors: {
  custom: {
    50: '#805dcb',
    500: '#3217b3',
    950: '#000000',
  },
}
SCSS
$custom: #3217b3;
$custom-light: #805dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3217b3",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 250.385,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38225,
    "c": 0.219,
    "h": 276.2
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#3217B3
secondary
#B9CD58
accent
#F434D3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3217B3

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

Preview Lab → · Contrast checker → · Palette generator →

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