#33218B#33218B

#33218B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.164 H 281.5°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#33218B
RGBrgb(51, 33, 139)
HSLhsl(250, 62%, 34%)
HSVhsv(250, 76%, 55%)
CMYKcmyk(63.3%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.50, 39.24, -55.73)
CIE-LCHlch(22.50, 68.16, 305.15°)
OKLaboklab(34.91% 0.0327 -0.1607)
OKLCHoklch(34.91% 0.164 281.5)
XYZxyz(6.5678, 3.6551, 24.7805)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33218B #798B21
analogous
#21448B #33218B #68218B
triadic
#33218B #8B3321 #218B33
tetradic
#33218B #8B2144 #798B21 #218B68
square
#33218B #8B2144 #798B21 #218B68
split-complementary
#33218B #8B6821 #448B21
monochromatic
#0F0A28 #21155A #33218B #452DBC #6751D6

Accessibility & contrast

On white

12.13
#33218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#33218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33218B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33218B#FFFFFF#000000##FFFFFF
##33218B1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #33218b;
/* rgb */ color: rgb(51, 33, 139);
/* oklch */ color: oklch(34.9% 0.164 281.5);
Tailwind
colors: {
  custom: {
    50: '#775fae',
    500: '#33218b',
    950: '#000000',
  },
}
SCSS
$custom: #33218b;
$custom-light: #775fae;
$custom-dark: #000000;
JSON
{
  "hex": "#33218b",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 250.189,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.16403,
    "h": 281.5
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#33218B
secondary
#A7B94F
accent
#E543C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #33218B

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

Preview Lab → · Contrast checker → · Palette generator →

#33218B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva