#33168D#33168D

#33168D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.177 H 282.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#33168D
RGBrgb(51, 22, 141)
HSLhsl(255, 73%, 32%)
HSVhsv(255, 84%, 55%)
CMYKcmyk(63.8%, 84.4%, 0%, 44.7%)
CIE-LABlab(20.83, 45.29, -59.74)
CIE-LCHlch(20.83, 74.96, 307.17°)
OKLaboklab(33.81% 0.0388 -0.1723)
OKLCHoklch(33.81% 0.177 282.7)
XYZxyz(6.4584, 3.2003, 25.4715)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33168D #708D16
analogous
#16358D #33168D #6F168D
triadic
#33168D #8D3316 #168D33
tetradic
#33168D #8D1635 #708D16 #168D6F
square
#33168D #8D1635 #708D16 #168D6F
split-complementary
#33168D #8D6F16 #358D16
monochromatic
#0D0523 #200E58 #33168D #461EC2 #653DE1

Accessibility & contrast

On white

12.80
#33168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#33168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33168D
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33168D#FFFFFF#000000##FFFFFF
##33168D1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33168d;
/* rgb */ color: rgb(51, 22, 141);
/* oklch */ color: oklch(33.8% 0.177 282.7);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#33168d',
    950: '#000000',
  },
}
SCSS
$custom: #33168d;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33168d",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 254.622,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33814,
    "c": 0.1766,
    "h": 282.7
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#33168D
secondary
#A1C13E
accent
#F038C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33168D

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

Preview Lab → · Contrast checker → · Palette generator →

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