#33167A#33167A

#33167A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.154 H 287.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#33167A
RGBrgb(51, 22, 122)
HSLhsl(257, 69%, 28%)
HSVhsv(257, 82%, 48%)
CMYKcmyk(58.2%, 82%, 0%, 52.2%)
CIE-LABlab(18.72, 39.70, -51.21)
CIE-LCHlch(18.72, 64.80, 307.78°)
OKLaboklab(31.74% 0.0454 -0.1474)
OKLCHoklch(31.74% 0.154 287.1)
XYZxyz(5.1640, 2.6825, 18.6542)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33167A #5D7A16
analogous
#162B7A #33167A #65167A
triadic
#33167A #7A3316 #167A33
tetradic
#33167A #7A162B #5D7A16 #167A65
square
#33167A #7A162B #5D7A16 #167A65
split-complementary
#33167A #7A6516 #2B7A16
monochromatic
#0B051A #1D0D46 #33167A #491FAE #6231DA

Accessibility & contrast

On white

13.67
#33167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33167A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33167A#FFFFFF#000000##FFFFFF
##33167A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#123348
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33167a;
/* rgb */ color: rgb(51, 22, 122);
/* oklch */ color: oklch(31.7% 0.154 287.1);
Tailwind
colors: {
  custom: {
    50: '#7458a1',
    500: '#33167a',
    950: '#000000',
  },
}
SCSS
$custom: #33167a;
$custom-light: #7458a1;
$custom-dark: #000000;
JSON
{
  "hex": "#33167a",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 257.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31735,
    "c": 0.15426,
    "h": 287.1
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#33167A
secondary
#8EAF3D
accent
#EC3CB9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33167A

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

Preview Lab → · Contrast checker → · Palette generator →

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