#33167C#33167C

#33167C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.157 H 286.6°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#33167C
RGBrgb(51, 22, 124)
HSLhsl(257, 70%, 29%)
HSVhsv(257, 82%, 49%)
CMYKcmyk(58.9%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.94, 40.29, -52.13)
CIE-LCHlch(18.94, 65.89, 307.70°)
OKLaboklab(31.95% 0.0447 -0.1501)
OKLCHoklch(31.95% 0.157 286.6)
XYZxyz(5.2891, 2.7326, 19.3136)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33167C #5F7C16
analogous
#162C7C #33167C #66167C
triadic
#33167C #7C3316 #167C33
tetradic
#33167C #7C162C #5F7C16 #167C66
square
#33167C #7C162C #5F7C16 #167C66
split-complementary
#33167C #7C6616 #2C7C16
monochromatic
#0B051A #1E0D48 #33167C #481FB0 #6232DB

Accessibility & contrast

On white

13.58
#33167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#33167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33167C
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33167C#FFFFFF#000000##FFFFFF
##33167C1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#0F3449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33167c;
/* rgb */ color: rgb(51, 22, 124);
/* oklch */ color: oklch(31.9% 0.157 286.6);
Tailwind
colors: {
  custom: {
    50: '#7558a3',
    500: '#33167c',
    950: '#000000',
  },
}
SCSS
$custom: #33167c;
$custom-light: #7558a3;
$custom-dark: #000000;
JSON
{
  "hex": "#33167c",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 257.059,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31948,
    "c": 0.15665,
    "h": 286.6
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#33167C
secondary
#90B13D
accent
#ED3BBA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33167C

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

Preview Lab → · Contrast checker → · Palette generator →

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