#33218A#33218A

#33218A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.163 H 281.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#33218A
RGBrgb(51, 33, 138)
HSLhsl(250, 61%, 34%)
HSVhsv(250, 76%, 54%)
CMYKcmyk(63%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.39, 38.93, -55.28)
CIE-LCHlch(22.39, 67.61, 305.15°)
OKLaboklab(34.81% 0.0329 -0.1594)
OKLCHoklch(34.81% 0.163 281.7)
XYZxyz(6.4951, 3.6260, 24.3975)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33218A #788A21
analogous
#21438A #33218A #67218A
triadic
#33218A #8A3321 #218A33
tetradic
#33218A #8A2143 #788A21 #218A67
square
#33218A #8A2143 #788A21 #218A67
split-complementary
#33218A #8A6721 #438A21
monochromatic
#0E0927 #211559 #33218A #452DBB #6750D5

Accessibility & contrast

On white

12.17
#33218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33218A
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33218A#FFFFFF#000000##FFFFFF
##33218A1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #33218a;
/* rgb */ color: rgb(51, 33, 138);
/* oklch */ color: oklch(34.8% 0.163 281.7);
Tailwind
colors: {
  custom: {
    50: '#765fad',
    500: '#33218a',
    950: '#000000',
  },
}
SCSS
$custom: #33218a;
$custom-light: #765fad;
$custom-dark: #000000;
JSON
{
  "hex": "#33218a",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 250.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34809,
    "c": 0.16278,
    "h": 281.7
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #33218A

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

Preview Lab → · Contrast checker → · Palette generator →

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