#33218C#33218C

#33218C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.165 H 281.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#33218C
RGBrgb(51, 33, 140)
HSLhsl(250, 62%, 34%)
HSVhsv(250, 76%, 55%)
CMYKcmyk(63.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.60, 39.56, -56.19)
CIE-LCHlch(22.60, 68.72, 305.15°)
OKLaboklab(35.02% 0.0324 -0.1621)
OKLCHoklch(35.02% 0.165 281.3)
XYZxyz(6.6412, 3.6845, 25.1671)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33218C #7A8C21
analogous
#21458C #33218C #69218C
triadic
#33218C #8C3321 #218C33
tetradic
#33218C #8C2145 #7A8C21 #218C69
square
#33218C #8C2145 #7A8C21 #218C69
split-complementary
#33218C #8C6921 #458C21
monochromatic
#0F0A29 #21155A #33218C #452DBE #6851D6

Accessibility & contrast

On white

12.09
#33218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#33218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33218C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33218C#FFFFFF#000000##FFFFFF
##33218C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #33218c;
/* rgb */ color: rgb(51, 33, 140);
/* oklch */ color: oklch(35.0% 0.165 281.3);
Tailwind
colors: {
  custom: {
    50: '#775faf',
    500: '#33218c',
    950: '#000000',
  },
}
SCSS
$custom: #33218c;
$custom-light: #775faf;
$custom-dark: #000000;
JSON
{
  "hex": "#33218c",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 250.093,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35016,
    "c": 0.16529,
    "h": 281.3
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#33218C
secondary
#A8B94F
accent
#E543CA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #33218C

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

Preview Lab → · Contrast checker → · Palette generator →

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