#33174B#33174B

#33174B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.094 H 305.9°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#33174B
RGBrgb(51, 23, 75)
HSLhsl(272, 53%, 19%)
HSVhsv(272, 69%, 29%)
CMYKcmyk(32%, 69.3%, 0%, 70.6%)
CIE-LABlab(14.54, 25.35, -26.90)
CIE-LCHlch(14.54, 36.96, 313.30°)
OKLaboklab(27.42% 0.0551 -0.0761)
OKLCHoklch(27.42% 0.094 305.9)
XYZxyz(2.9414, 1.8246, 6.8525)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33174B #2F4B17
analogous
#19174B #33174B #4B1749
triadic
#33174B #4B3317 #174B33
tetradic
#33174B #4B1917 #2F4B17 #17494B
square
#33174B #4B1917 #2F4B17 #17494B
split-complementary
#33174B #494B17 #174B19
monochromatic
#100717 #13091C #33174B #53257A #7334A9

Accessibility & contrast

On white

15.38
#33174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33174B
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33174B#FFFFFF#000000##FFFFFF
##33174B1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#0B254A
Tritanopia (blue-blind)
#2F222E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #33174b;
/* rgb */ color: rgb(51, 23, 75);
/* oklch */ color: oklch(27.4% 0.094 305.9);
Tailwind
colors: {
  custom: {
    50: '#6d567e',
    500: '#33174b',
    950: '#000000',
  },
}
SCSS
$custom: #33174b;
$custom-light: #6d567e;
$custom-dark: #000000;
JSON
{
  "hex": "#33174b",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 272.308,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27421,
    "c": 0.09395,
    "h": 305.9
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#33174B
secondary
#5C823C
accent
#DC4B8E
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #33174B

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

Preview Lab → · Contrast checker → · Palette generator →

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