#33177B#33177B

#33177B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.154 H 286.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#33177B
RGBrgb(51, 23, 123)
HSLhsl(257, 68%, 29%)
HSVhsv(257, 81%, 48%)
CMYKcmyk(58.5%, 81.3%, 0%, 51.8%)
CIE-LABlab(19.00, 39.51, -51.40)
CIE-LCHlch(19.00, 64.83, 307.55°)
OKLaboklab(31.96% 0.0444 -0.148)
OKLCHoklch(31.96% 0.154 286.7)
XYZxyz(5.2457, 2.7464, 18.9887)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33177B #5F7B17
analogous
#172D7B #33177B #65177B
triadic
#33177B #7B3317 #177B33
tetradic
#33177B #7B172D #5F7B17 #177B65
square
#33177B #7B172D #5F7B17 #177B65
split-complementary
#33177B #7B6517 #2D7B17
monochromatic
#0B051A #1E0D47 #33177B #4821AF #6233D9

Accessibility & contrast

On white

13.55
#33177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#33177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33177B
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33177B#FFFFFF#000000##FFFFFF
##33177B1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#113449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33177b;
/* rgb */ color: rgb(51, 23, 123);
/* oklch */ color: oklch(32.0% 0.154 286.7);
Tailwind
colors: {
  custom: {
    50: '#7458a2',
    500: '#33177b',
    950: '#000000',
  },
}
SCSS
$custom: #33177b;
$custom-light: #7458a2;
$custom-dark: #000000;
JSON
{
  "hex": "#33177b",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 256.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31957,
    "c": 0.15449,
    "h": 286.7
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#33177B
secondary
#90B03E
accent
#EB3CBA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33177B

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

Preview Lab → · Contrast checker → · Palette generator →

#33177B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva