#3213B4#3213B4

#3213B4 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 38.0% C 0.222 H 276.3°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#3213B4
RGBrgb(50, 19, 180)
HSLhsl(252, 81%, 39%)
HSVhsv(252, 89%, 71%)
CMYKcmyk(72.2%, 89.4%, 0%, 29.4%)
CIE-LABlab(25.07, 57.30, -76.50)
CIE-LCHlch(25.07, 95.58, 306.83°)
OKLaboklab(38.04% 0.0243 -0.2209)
OKLCHoklch(38.04% 0.222 276.3)
XYZxyz(9.7838, 4.4382, 43.5122)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3213B4 #95B413
analogous
#1344B4 #3213B4 #8313B4
triadic
#3213B4 #B43213 #13B432
tetradic
#3213B4 #B41344 #95B413 #13B483
square
#3213B4 #B41344 #95B413 #13B483
split-complementary
#3213B4 #B48313 #44B413
monochromatic
#130745 #230D7D #3213B4 #441DE7 #7254ED

Accessibility & contrast

On white

11.12
#3213B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3213B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3213B4
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3213B4#FFFFFF#000000##FFFFFF
##3213B41.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3213b4;
/* rgb */ color: rgb(50, 19, 180);
/* oklch */ color: oklch(38.0% 0.222 276.3);
Tailwind
colors: {
  custom: {
    50: '#805bcc',
    500: '#3213b4',
    950: '#000000',
  },
}
SCSS
$custom: #3213b4;
$custom-light: #805bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3213b4",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 180
  },
  "hsl": {
    "h": 251.553,
    "s": 80.905,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3804,
    "c": 0.22227,
    "h": 276.3
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#3213B4
secondary
#B8CF53
accent
#F730D1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3213B4

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

Preview Lab → · Contrast checker → · Palette generator →

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