#33166C#33166C

#33166C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.137 H 291.3°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#33166C
RGBrgb(51, 22, 108)
HSLhsl(260, 66%, 25%)
HSVhsv(260, 80%, 42%)
CMYKcmyk(52.8%, 79.6%, 0%, 57.6%)
CIE-LABlab(17.27, 35.54, -44.55)
CIE-LCHlch(17.27, 56.99, 308.58°)
OKLaboklab(30.28% 0.0498 -0.1279)
OKLCHoklch(30.28% 0.137 291.3)
XYZxyz(4.3582, 2.3602, 14.4104)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33166C #4F6C16
analogous
#16246C #33166C #5E166C
triadic
#33166C #6C3316 #166C33
tetradic
#33166C #6C1624 #4F6C16 #166C5E
square
#33166C #6C1624 #4F6C16 #166C5E
split-complementary
#33166C #6C5E16 #246C16
monochromatic
#0C0519 #1B0C39 #33166C #4B209F #632BD2

Accessibility & contrast

On white

14.27
#33166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#33166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33166C
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33166C#FFFFFF#000000##FFFFFF
##33166C1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#202E40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #33166c;
/* rgb */ color: rgb(51, 22, 108);
/* oklch */ color: oklch(30.3% 0.137 291.3);
Tailwind
colors: {
  custom: {
    50: '#725797',
    500: '#33166c',
    950: '#000000',
  },
}
SCSS
$custom: #33166c;
$custom-light: #725797;
$custom-dark: #000000;
JSON
{
  "hex": "#33166c",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 260.233,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30284,
    "c": 0.13731,
    "h": 291.3
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#33166C
secondary
#80A23C
accent
#E93FB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33166C

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

Preview Lab → · Contrast checker → · Palette generator →

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