#33174D#33174D

#33174D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.097 H 304.7°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#33174D
RGBrgb(51, 23, 77)
HSLhsl(271, 54%, 20%)
HSVhsv(271, 70%, 30%)
CMYKcmyk(33.8%, 70.1%, 0%, 69.8%)
CIE-LABlab(14.69, 25.91, -28.03)
CIE-LCHlch(14.69, 38.17, 312.75°)
OKLaboklab(27.58% 0.0549 -0.0794)
OKLCHoklch(27.58% 0.097 304.7)
XYZxyz(3.0109, 1.8524, 7.2187)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33174D #314D17
analogous
#18174D #33174D #4D174C
triadic
#33174D #4D3317 #174D33
tetradic
#33174D #4D1817 #314D17 #174C4D
square
#33174D #4D1817 #314D17 #174C4D
split-complementary
#33174D #4C4D17 #174D18
monochromatic
#100718 #14091E #33174D #52257C #7133AB

Accessibility & contrast

On white

15.32
#33174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33174D
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33174D#FFFFFF#000000##FFFFFF
##33174D1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#09254C
Tritanopia (blue-blind)
#2E222F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #33174d;
/* rgb */ color: rgb(51, 23, 77);
/* oklch */ color: oklch(27.6% 0.097 304.7);
Tailwind
colors: {
  custom: {
    50: '#6d567f',
    500: '#33174d',
    950: '#000000',
  },
}
SCSS
$custom: #33174d;
$custom-light: #6d567f;
$custom-dark: #000000;
JSON
{
  "hex": "#33174d",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 271.111,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27582,
    "c": 0.09656,
    "h": 304.7
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#33174D
secondary
#5F843C
accent
#DD4A91
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #33174D

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

Preview Lab → · Contrast checker → · Palette generator →

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