#33175A#33175A

#33175A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.113 H 298.0°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#33175A
RGBrgb(51, 23, 90)
HSLhsl(265, 59%, 22%)
HSVhsv(265, 74%, 35%)
CMYKcmyk(43.3%, 74.4%, 0%, 64.7%)
CIE-LABlab(15.77, 29.66, -35.10)
CIE-LCHlch(15.77, 45.96, 310.20°)
OKLaboklab(28.7% 0.0532 -0.1002)
OKLCHoklch(28.7% 0.113 298)
XYZxyz(3.5166, 2.0547, 9.8822)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33175A #3E5A17
analogous
#171C5A #33175A #55175A
triadic
#33175A #5A3317 #175A33
tetradic
#33175A #5A171C #3E5A17 #175A55
square
#33175A #5A171C #3E5A17 #175A55
split-complementary
#33175A #5A5517 #1C5A17
monochromatic
#0E0618 #170B29 #33175A #4F238B #6A30BB

Accessibility & contrast

On white

14.88
#33175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#33175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33175A
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33175A#FFFFFF#000000##FFFFFF
##33175A1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#292736
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #33175a;
/* rgb */ color: rgb(51, 23, 90);
/* oklch */ color: oklch(28.7% 0.113 298.0);
Tailwind
colors: {
  custom: {
    50: '#6f5689',
    500: '#33175a',
    950: '#000000',
  },
}
SCSS
$custom: #33175a;
$custom-light: #6f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#33175a",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 265.075,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28698,
    "c": 0.11346,
    "h": 298
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#33175A
secondary
#6D913C
accent
#E245A1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #33175A

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

Preview Lab → · Contrast checker → · Palette generator →

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