#33177F#33177F

#33177F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.159 H 285.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#33177F
RGBrgb(51, 23, 127)
HSLhsl(256, 69%, 29%)
HSVhsv(256, 82%, 50%)
CMYKcmyk(59.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(19.43, 40.71, -53.24)
CIE-LCHlch(19.43, 67.02, 307.40°)
OKLaboklab(32.38% 0.043 -0.1534)
OKLCHoklch(32.38% 0.159 285.7)
XYZxyz(5.5012, 2.8486, 20.3345)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33177F #637F17
analogous
#172F7F #33177F #67177F
triadic
#33177F #7F3317 #177F33
tetradic
#33177F #7F172F #637F17 #177F67
square
#33177F #7F172F #637F17 #177F67
split-complementary
#33177F #7F6717 #2F7F17
monochromatic
#0A051A #1E0E4B #33177F #4820B3 #6236DB

Accessibility & contrast

On white

13.38
#33177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#33177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33177F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33177F#FFFFFF#000000##FFFFFF
##33177F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0A364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #33177f;
/* rgb */ color: rgb(51, 23, 127);
/* oklch */ color: oklch(32.4% 0.159 285.7);
Tailwind
colors: {
  custom: {
    50: '#7558a5',
    500: '#33177f',
    950: '#000000',
  },
}
SCSS
$custom: #33177f;
$custom-light: #7558a5;
$custom-dark: #000000;
JSON
{
  "hex": "#33177f",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 256.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32384,
    "c": 0.15929,
    "h": 285.7
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#33177F
secondary
#94B43E
accent
#EC3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33177F

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

Preview Lab → · Contrast checker → · Palette generator →

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