#33168E#33168E

#33168E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.178 H 282.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#33168E
RGBrgb(51, 22, 142)
HSLhsl(255, 73%, 32%)
HSVhsv(255, 85%, 56%)
CMYKcmyk(64.1%, 84.5%, 0%, 44.3%)
CIE-LABlab(20.94, 45.58, -60.17)
CIE-LCHlch(20.94, 75.48, 307.14°)
OKLaboklab(33.93% 0.0384 -0.1736)
OKLCHoklch(33.93% 0.178 282.5)
XYZxyz(6.5331, 3.2301, 25.8652)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33168E #718E16
analogous
#16358E #33168E #6F168E
triadic
#33168E #8E3316 #168E33
tetradic
#33168E #8E1635 #718E16 #168E6F
square
#33168E #8E1635 #718E16 #168E6F
split-complementary
#33168E #8E6F16 #358E16
monochromatic
#0D0624 #200E59 #33168E #461EC3 #653DE1

Accessibility & contrast

On white

12.76
#33168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33168E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33168E#FFFFFF#000000##FFFFFF
##33168E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33168e;
/* rgb */ color: rgb(51, 22, 142);
/* oklch */ color: oklch(33.9% 0.178 282.5);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#33168e',
    950: '#000000',
  },
}
SCSS
$custom: #33168e;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33168e",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 254.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33927,
    "c": 0.17776,
    "h": 282.5
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #33168E

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

Preview Lab → · Contrast checker → · Palette generator →

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