#33167B#33167B

#33167B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.155 H 286.8°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#33167B
RGBrgb(51, 22, 123)
HSLhsl(257, 70%, 28%)
HSVhsv(257, 82%, 48%)
CMYKcmyk(58.5%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.83, 39.99, -51.67)
CIE-LCHlch(18.83, 65.34, 307.74°)
OKLaboklab(31.84% 0.0451 -0.1488)
OKLCHoklch(31.84% 0.155 286.8)
XYZxyz(5.2262, 2.7074, 18.9822)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33167B #5E7B16
analogous
#162B7B #33167B #65167B
triadic
#33167B #7B3316 #167B33
tetradic
#33167B #7B162B #5E7B16 #167B65
square
#33167B #7B162B #5E7B16 #167B65
split-complementary
#33167B #7B6516 #2B7B16
monochromatic
#0B051A #1D0D47 #33167B #491FAF #6231DA

Accessibility & contrast

On white

13.62
#33167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#33167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33167B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33167B#FFFFFF#000000##FFFFFF
##33167B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#113449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33167b;
/* rgb */ color: rgb(51, 22, 123);
/* oklch */ color: oklch(31.8% 0.155 286.8);
Tailwind
colors: {
  custom: {
    50: '#7458a2',
    500: '#33167b',
    950: '#000000',
  },
}
SCSS
$custom: #33167b;
$custom-light: #7458a2;
$custom-dark: #000000;
JSON
{
  "hex": "#33167b",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 257.228,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31842,
    "c": 0.15545,
    "h": 286.8
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#33167B
secondary
#8FB03D
accent
#EC3BBA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33167B

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

Preview Lab → · Contrast checker → · Palette generator →

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