#33174F#33174F

#33174F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.099 H 303.5°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#33174F
RGBrgb(51, 23, 79)
HSLhsl(270, 55%, 20%)
HSVhsv(270, 71%, 31%)
CMYKcmyk(35.4%, 70.9%, 0%, 69%)
CIE-LABlab(14.85, 26.48, -29.14)
CIE-LCHlch(14.85, 39.37, 312.25°)
OKLaboklab(27.75% 0.0548 -0.0827)
OKLCHoklch(27.75% 0.099 303.5)
XYZxyz(3.0826, 1.8811, 7.5963)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33174F #334F17
analogous
#17174F #33174F #4F174F
triadic
#33174F #4F3317 #174F33
tetradic
#33174F #4F1717 #334F17 #174F4F
square
#33174F #4F1717 #334F17 #174F4F
split-complementary
#33174F #4F4F17 #174F17
monochromatic
#0F0718 #140920 #33174F #52257E #7033AE

Accessibility & contrast

On white

15.26
#33174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#33174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33174F
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33174F#FFFFFF#000000##FFFFFF
##33174F1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#06254E
Tritanopia (blue-blind)
#2E2330
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #33174f;
/* rgb */ color: rgb(51, 23, 79);
/* oklch */ color: oklch(27.7% 0.099 303.5);
Tailwind
colors: {
  custom: {
    50: '#6d5681',
    500: '#33174f',
    950: '#000000',
  },
}
SCSS
$custom: #33174f;
$custom-light: #6d5681;
$custom-dark: #000000;
JSON
{
  "hex": "#33174f",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 270,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.27746,
    "c": 0.09918,
    "h": 303.5
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#33174F
secondary
#61863C
accent
#DE4A94
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #33174F

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

Preview Lab → · Contrast checker → · Palette generator →

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