#33168F#33168F

#33168F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.179 H 282.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#33168F
RGBrgb(51, 22, 143)
HSLhsl(254, 73%, 32%)
HSVhsv(254, 85%, 56%)
CMYKcmyk(64.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(21.06, 45.87, -60.60)
CIE-LCHlch(21.06, 76.01, 307.12°)
OKLaboklab(34.04% 0.0381 -0.1748)
OKLCHoklch(34.04% 0.179 282.3)
XYZxyz(6.6085, 3.2603, 26.2623)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33168F #728F16
analogous
#16368F #33168F #6F168F
triadic
#33168F #8F3316 #168F33
tetradic
#33168F #8F1636 #728F16 #168F6F
square
#33168F #8F1636 #728F16 #168F6F
split-complementary
#33168F #8F6F16 #368F16
monochromatic
#0D0625 #200E5A #33168F #461EC4 #653EE1

Accessibility & contrast

On white

12.71
#33168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#33168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33168F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33168F#FFFFFF#000000##FFFFFF
##33168F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33168f;
/* rgb */ color: rgb(51, 22, 143);
/* oklch */ color: oklch(34.0% 0.179 282.3);
Tailwind
colors: {
  custom: {
    50: '#7859b1',
    500: '#33168f',
    950: '#000000',
  },
}
SCSS
$custom: #33168f;
$custom-light: #7859b1;
$custom-dark: #000000;
JSON
{
  "hex": "#33168f",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 254.38,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34039,
    "c": 0.17891,
    "h": 282.3
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#33168F
secondary
#A2C13F
accent
#F038C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33168F

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

Preview Lab → · Contrast checker → · Palette generator →

#33168F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva