#33178F#33178F

#33178F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.178 H 282.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#33178F
RGBrgb(51, 23, 143)
HSLhsl(254, 72%, 33%)
HSVhsv(254, 84%, 56%)
CMYKcmyk(64.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.20, 45.44, -60.36)
CIE-LCHlch(21.20, 75.55, 306.97°)
OKLaboklab(34.14% 0.0376 -0.1741)
OKLCHoklch(34.14% 0.178 282.2)
XYZxyz(6.6280, 3.2993, 26.2688)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33178F #738F17
analogous
#17378F #33178F #6F178F
triadic
#33178F #8F3317 #178F33
tetradic
#33178F #8F1737 #738F17 #178F6F
square
#33178F #8F1737 #738F17 #178F6F
split-complementary
#33178F #8F6F17 #378F17
monochromatic
#0D0626 #200F5A #33178F #461FC4 #6540E0

Accessibility & contrast

On white

12.65
#33178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#33178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33178F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33178F#FFFFFF#000000##FFFFFF
##33178F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33178f;
/* rgb */ color: rgb(51, 23, 143);
/* oklch */ color: oklch(34.1% 0.178 282.2);
Tailwind
colors: {
  custom: {
    50: '#785ab1',
    500: '#33178f',
    950: '#000000',
  },
}
SCSS
$custom: #33178f;
$custom-light: #785ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#33178f",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 254,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3414,
    "c": 0.17812,
    "h": 282.2
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #33178F

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

Preview Lab → · Contrast checker → · Palette generator →

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