#33166A#33166A

#33166A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.135 H 291.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#33166A
RGBrgb(51, 22, 106)
HSLhsl(261, 66%, 25%)
HSVhsv(261, 79%, 42%)
CMYKcmyk(51.9%, 79.2%, 0%, 58.4%)
CIE-LABlab(17.08, 34.94, -43.57)
CIE-LCHlch(17.08, 55.85, 308.73°)
OKLaboklab(30.08% 0.0504 -0.1251)
OKLCHoklch(30.08% 0.135 291.9)
XYZxyz(4.2529, 2.3181, 13.8562)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33166A #4D6A16
analogous
#16236A #33166A #5D166A
triadic
#33166A #6A3316 #166A33
tetradic
#33166A #6A1623 #4D6A16 #166A5D
square
#33166A #6A1623 #4D6A16 #166A5D
split-complementary
#33166A #6A5D16 #236A16
monochromatic
#0C0519 #1B0B37 #33166A #4B219D #642BCF

Accessibility & contrast

On white

14.35
#33166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#33166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33166A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33166A#FFFFFF#000000##FFFFFF
##33166A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#212D3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #33166a;
/* rgb */ color: rgb(51, 22, 106);
/* oklch */ color: oklch(30.1% 0.135 291.9);
Tailwind
colors: {
  custom: {
    50: '#715795',
    500: '#33166a',
    950: '#000000',
  },
}
SCSS
$custom: #33166a;
$custom-light: #715795;
$custom-dark: #000000;
JSON
{
  "hex": "#33166a",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 260.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30083,
    "c": 0.13485,
    "h": 291.9
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#33166A
secondary
#7EA03B
accent
#E93FAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33166A

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

Preview Lab → · Contrast checker → · Palette generator →

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