#33176A#33176A

#33176A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.134 H 291.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#33176A
RGBrgb(51, 23, 106)
HSLhsl(260, 64%, 25%)
HSVhsv(260, 78%, 42%)
CMYKcmyk(51.9%, 78.3%, 0%, 58.4%)
CIE-LABlab(17.26, 34.42, -43.27)
CIE-LCHlch(17.26, 55.29, 308.50°)
OKLaboklab(30.21% 0.0495 -0.1242)
OKLCHoklch(30.21% 0.134 291.7)
XYZxyz(4.2724, 2.3570, 13.8627)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33176A #4E6A17
analogous
#17246A #33176A #5C176A
triadic
#33176A #6A3317 #176A33
tetradic
#33176A #6A1724 #4E6A17 #176A5C
square
#33176A #6A1724 #4E6A17 #176A5C
split-complementary
#33176A #6A5C17 #246A17
monochromatic
#0C0519 #1B0C38 #33176A #4B229C #632DCF

Accessibility & contrast

On white

14.27
#33176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#33176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33176A
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33176A#FFFFFF#000000##FFFFFF
##33176A1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#212D3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #33176a;
/* rgb */ color: rgb(51, 23, 106);
/* oklch */ color: oklch(30.2% 0.134 291.7);
Tailwind
colors: {
  custom: {
    50: '#715795',
    500: '#33176a',
    950: '#000000',
  },
}
SCSS
$custom: #33176a;
$custom-light: #715795;
$custom-dark: #000000;
JSON
{
  "hex": "#33176a",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 260.241,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30213,
    "c": 0.1337,
    "h": 291.7
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#33176A
secondary
#7FA03D
accent
#E740AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33176A

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

Preview Lab → · Contrast checker → · Palette generator →

#33176A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva