#3211B4#3211B4

#3211B4 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.9% C 0.223 H 276.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3211B4
RGBrgb(50, 17, 180)
HSLhsl(252, 83%, 39%)
HSVhsv(252, 91%, 71%)
CMYKcmyk(72.2%, 90.6%, 0%, 29.4%)
CIE-LABlab(24.87, 57.91, -76.84)
CIE-LCHlch(24.87, 96.22, 307.00°)
OKLaboklab(37.9% 0.0247 -0.2219)
OKLCHoklch(37.9% 0.223 276.4)
XYZxyz(9.7514, 4.3734, 43.5014)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3211B4 #93B411
analogous
#1141B4 #3211B4 #8311B4
triadic
#3211B4 #B43211 #11B432
tetradic
#3211B4 #B41141 #93B411 #11B483
square
#3211B4 #B41141 #93B411 #11B483
split-complementary
#3211B4 #B48311 #41B411
monochromatic
#130644 #220C7C #3211B4 #4319E9 #7151EF

Accessibility & contrast

On white

11.20
#3211B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3211B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3211B4
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3211B4#FFFFFF#000000##FFFFFF
##3211B41.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3211b4;
/* rgb */ color: rgb(50, 17, 180);
/* oklch */ color: oklch(37.9% 0.223 276.4);
Tailwind
colors: {
  custom: {
    50: '#805acc',
    500: '#3211b4',
    950: '#000000',
  },
}
SCSS
$custom: #3211b4;
$custom-light: #805acc;
$custom-dark: #000000;
JSON
{
  "hex": "#3211b4",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 180
  },
  "hsl": {
    "h": 252.147,
    "s": 82.741,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37904,
    "c": 0.22324,
    "h": 276.4
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#3211B4
secondary
#B7D050
accent
#F92FD0
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3211B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3211B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva