#33174C#33174C

#33174C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.095 H 305.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#33174C
RGBrgb(51, 23, 76)
HSLhsl(272, 54%, 19%)
HSVhsv(272, 70%, 30%)
CMYKcmyk(32.9%, 69.7%, 0%, 70.2%)
CIE-LABlab(14.62, 25.63, -27.47)
CIE-LCHlch(14.62, 37.57, 313.02°)
OKLaboklab(27.5% 0.055 -0.0778)
OKLCHoklch(27.5% 0.095 305.3)
XYZxyz(2.9759, 1.8384, 7.0342)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33174C #304C17
analogous
#19174C #33174C #4C174B
triadic
#33174C #4C3317 #174C33
tetradic
#33174C #4C1917 #304C17 #174B4C
square
#33174C #4C1917 #304C17 #174B4C
split-complementary
#33174C #4B4C17 #174C19
monochromatic
#100717 #13091D #33174C #53257B #7233AA

Accessibility & contrast

On white

15.36
#33174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#33174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33174C
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33174C#FFFFFF#000000##FFFFFF
##33174C1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#0A254B
Tritanopia (blue-blind)
#2F222F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #33174c;
/* rgb */ color: rgb(51, 23, 76);
/* oklch */ color: oklch(27.5% 0.095 305.3);
Tailwind
colors: {
  custom: {
    50: '#6d567e',
    500: '#33174c',
    950: '#000000',
  },
}
SCSS
$custom: #33174c;
$custom-light: #6d567e;
$custom-dark: #000000;
JSON
{
  "hex": "#33174c",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 271.698,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27501,
    "c": 0.09525,
    "h": 305.3
  },
  "luminance": 0.01838
}

Semantic roles & 50–950 ramp

primary
#33174C
secondary
#5D833C
accent
#DD4B90
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #33174C

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

Preview Lab → · Contrast checker → · Palette generator →

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