#33178D#33178D

#33178D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.176 H 282.6°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#33178D
RGBrgb(51, 23, 141)
HSLhsl(254, 72%, 32%)
HSVhsv(254, 84%, 55%)
CMYKcmyk(63.8%, 83.7%, 0%, 44.7%)
CIE-LABlab(20.98, 44.85, -59.49)
CIE-LCHlch(20.98, 74.50, 307.01°)
OKLaboklab(33.92% 0.0383 -0.1716)
OKLCHoklch(33.92% 0.176 282.6)
XYZxyz(6.4779, 3.2392, 25.4780)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33178D #718D17
analogous
#17368D #33178D #6E178D
triadic
#33178D #8D3317 #178D33
tetradic
#33178D #8D1736 #718D17 #178D6E
square
#33178D #8D1736 #718D17 #178D6E
split-complementary
#33178D #8D6E17 #368D17
monochromatic
#0D0624 #200E58 #33178D #4620C2 #653FE0

Accessibility & contrast

On white

12.74
#33178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#33178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33178D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33178D#FFFFFF#000000##FFFFFF
##33178D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33178d;
/* rgb */ color: rgb(51, 23, 141);
/* oklch */ color: oklch(33.9% 0.176 282.6);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#33178d',
    950: '#000000',
  },
}
SCSS
$custom: #33178d;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33178d",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 254.237,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33917,
    "c": 0.1758,
    "h": 282.6
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#33178D
secondary
#A2C040
accent
#EF39C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33178D

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

Preview Lab → · Contrast checker → · Palette generator →

#33178D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva