#33178E#33178E

#33178E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.177 H 282.4°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#33178E
RGBrgb(51, 23, 142)
HSLhsl(254, 72%, 32%)
HSVhsv(254, 84%, 56%)
CMYKcmyk(64.1%, 83.8%, 0%, 44.3%)
CIE-LABlab(21.09, 45.14, -59.93)
CIE-LCHlch(21.09, 75.03, 306.99°)
OKLaboklab(34.03% 0.0379 -0.1729)
OKLCHoklch(34.03% 0.177 282.4)
XYZxyz(6.5526, 3.2691, 25.8716)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33178E #728E17
analogous
#17368E #33178E #6F178E
triadic
#33178E #8E3317 #178E33
tetradic
#33178E #8E1736 #728E17 #178E6F
square
#33178E #8E1736 #728E17 #178E6F
split-complementary
#33178E #8E6F17 #368E17
monochromatic
#0D0625 #200E59 #33178E #4620C3 #653FE0

Accessibility & contrast

On white

12.70
#33178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33178E
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33178E#FFFFFF#000000##FFFFFF
##33178E1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33178e;
/* rgb */ color: rgb(51, 23, 142);
/* oklch */ color: oklch(34.0% 0.177 282.4);
Tailwind
colors: {
  custom: {
    50: '#785ab0',
    500: '#33178e',
    950: '#000000',
  },
}
SCSS
$custom: #33178e;
$custom-light: #785ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#33178e",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 254.118,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34028,
    "c": 0.17697,
    "h": 282.4
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #33178E

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

Preview Lab → · Contrast checker → · Palette generator →

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