#33218D#33218D

#33218D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.167 H 281.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#33218D
RGBrgb(51, 33, 141)
HSLhsl(250, 62%, 34%)
HSVhsv(250, 77%, 55%)
CMYKcmyk(63.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.70, 39.88, -56.64)
CIE-LCHlch(22.70, 69.27, 305.15°)
OKLaboklab(35.12% 0.0322 -0.1634)
OKLCHoklch(35.12% 0.167 281.1)
XYZxyz(6.7153, 3.7141, 25.5572)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33218D #7B8D21
analogous
#21458D #33218D #69218D
triadic
#33218D #8D3321 #218D33
tetradic
#33218D #8D2145 #7B8D21 #218D69
square
#33218D #8D2145 #7B8D21 #218D69
split-complementary
#33218D #8D6921 #458D21
monochromatic
#0F0A2A #21155B #33218D #452DBF #6852D6

Accessibility & contrast

On white

12.05
#33218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33218D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33218D#FFFFFF#000000##FFFFFF
##33218D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #33218d;
/* rgb */ color: rgb(51, 33, 141);
/* oklch */ color: oklch(35.1% 0.167 281.1);
Tailwind
colors: {
  custom: {
    50: '#775faf',
    500: '#33218d',
    950: '#000000',
  },
}
SCSS
$custom: #33218d;
$custom-light: #775faf;
$custom-dark: #000000;
JSON
{
  "hex": "#33218d",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 250,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3512,
    "c": 0.16653,
    "h": 281.1
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#33218D
secondary
#A8BA50
accent
#E543CA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #33218D

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

Preview Lab → · Contrast checker → · Palette generator →

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