#33174A#33174A

#33174A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.093 H 306.5°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#33174A
RGBrgb(51, 23, 74)
HSLhsl(273, 53%, 19%)
HSVhsv(273, 69%, 29%)
CMYKcmyk(31.1%, 68.9%, 0%, 71%)
CIE-LABlab(14.46, 25.07, -26.33)
CIE-LCHlch(14.46, 36.36, 313.59°)
OKLaboklab(27.34% 0.0551 -0.0744)
OKLCHoklch(27.34% 0.093 306.5)
XYZxyz(2.9074, 1.8110, 6.6736)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33174A #2E4A17
analogous
#1A174A #33174A #4A1748
triadic
#33174A #4A3317 #174A33
tetradic
#33174A #4A1A17 #2E4A17 #17484A
square
#33174A #4A1A17 #2E4A17 #17484A
split-complementary
#33174A #484A17 #174A1A
monochromatic
#100717 #13081B #33174A #532679 #7334A7

Accessibility & contrast

On white

15.42
#33174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#33174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33174A
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33174A#FFFFFF#000000##FFFFFF
##33174A1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244C
Deuteranopia (green-blind)
#0D2549
Tritanopia (blue-blind)
#2F212E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #33174a;
/* rgb */ color: rgb(51, 23, 74);
/* oklch */ color: oklch(27.3% 0.093 306.5);
Tailwind
colors: {
  custom: {
    50: '#6d567d',
    500: '#33174a',
    950: '#000000',
  },
}
SCSS
$custom: #33174a;
$custom-light: #6d567d;
$custom-dark: #000000;
JSON
{
  "hex": "#33174a",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 272.941,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27342,
    "c": 0.09263,
    "h": 306.5
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#33174A
secondary
#5B813C
accent
#DC4C8D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #33174A

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

Preview Lab → · Contrast checker → · Palette generator →

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