#33167E#33167E

#33167E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 286.1°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#33167E
RGBrgb(51, 22, 126)
HSLhsl(257, 70%, 29%)
HSVhsv(257, 83%, 49%)
CMYKcmyk(59.5%, 82.5%, 0%, 50.6%)
CIE-LABlab(19.16, 40.88, -53.05)
CIE-LCHlch(19.16, 66.97, 307.62°)
OKLaboklab(32.16% 0.044 -0.1528)
OKLCHoklch(32.16% 0.159 286.1)
XYZxyz(5.4169, 2.7837, 19.9865)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33167E #617E16
analogous
#162D7E #33167E #67167E
triadic
#33167E #7E3316 #167E33
tetradic
#33167E #7E162D #617E16 #167E67
square
#33167E #7E162D #617E16 #167E67
split-complementary
#33167E #7E6716 #2D7E16
monochromatic
#0B051A #1E0D4A #33167E #481FB2 #6233DB

Accessibility & contrast

On white

13.49
#33167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33167E
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33167E#FFFFFF#000000##FFFFFF
##33167E1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#0C354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33167e;
/* rgb */ color: rgb(51, 22, 126);
/* oklch */ color: oklch(32.2% 0.159 286.1);
Tailwind
colors: {
  custom: {
    50: '#7558a4',
    500: '#33167e',
    950: '#000000',
  },
}
SCSS
$custom: #33167e;
$custom-light: #7558a4;
$custom-dark: #000000;
JSON
{
  "hex": "#33167e",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 256.731,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32163,
    "c": 0.15902,
    "h": 286.1
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#33167E
secondary
#92B33D
accent
#ED3BBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33167E

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

Preview Lab → · Contrast checker → · Palette generator →

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