#33167F#33167F

#33167F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.160 H 285.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#33167F
RGBrgb(51, 22, 127)
HSLhsl(257, 70%, 29%)
HSVhsv(257, 83%, 50%)
CMYKcmyk(59.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(19.26, 41.18, -53.51)
CIE-LCHlch(19.26, 67.52, 307.58°)
OKLaboklab(32.27% 0.0437 -0.1541)
OKLCHoklch(32.27% 0.16 285.8)
XYZxyz(5.4818, 2.8096, 20.3280)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33167F #627F16
analogous
#162E7F #33167F #68167F
triadic
#33167F #7F3316 #167F33
tetradic
#33167F #7F162E #627F16 #167F68
square
#33167F #7F162E #627F16 #167F68
split-complementary
#33167F #7F6816 #2E7F16
monochromatic
#0A051A #1E0D4B #33167F #481FB3 #6234DC

Accessibility & contrast

On white

13.44
#33167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#33167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33167F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33167F#FFFFFF#000000##FFFFFF
##33167F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0A354B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #33167f;
/* rgb */ color: rgb(51, 22, 127);
/* oklch */ color: oklch(32.3% 0.160 285.8);
Tailwind
colors: {
  custom: {
    50: '#7558a5',
    500: '#33167f',
    950: '#000000',
  },
}
SCSS
$custom: #33167f;
$custom-light: #7558a5;
$custom-dark: #000000;
JSON
{
  "hex": "#33167f",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 256.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32271,
    "c": 0.1602,
    "h": 285.8
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#33167F
secondary
#93B43D
accent
#ED3BBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33167F

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

Preview Lab → · Contrast checker → · Palette generator →

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