#33175B#33175B

#33175B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.115 H 297.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#33175B
RGBrgb(51, 23, 91)
HSLhsl(265, 60%, 22%)
HSVhsv(265, 75%, 36%)
CMYKcmyk(44%, 74.7%, 0%, 64.3%)
CIE-LABlab(15.86, 29.96, -35.63)
CIE-LCHlch(15.86, 46.55, 310.06°)
OKLaboklab(28.79% 0.053 -0.1018)
OKLCHoklch(28.79% 0.115 297.5)
XYZxyz(3.5595, 2.0719, 10.1079)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33175B #3F5B17
analogous
#171D5B #33175B #55175B
triadic
#33175B #5B3317 #175B33
tetradic
#33175B #5B171D #3F5B17 #175B55
square
#33175B #5B171D #3F5B17 #175B55
split-complementary
#33175B #5B5517 #1D5B17
monochromatic
#0E0618 #180B2A #33175B #4E238C #6A30BD

Accessibility & contrast

On white

14.85
#33175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33175B
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33175B#FFFFFF#000000##FFFFFF
##33175B1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#292837
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #33175b;
/* rgb */ color: rgb(51, 23, 91);
/* oklch */ color: oklch(28.8% 0.115 297.5);
Tailwind
colors: {
  custom: {
    50: '#6f568a',
    500: '#33175b',
    950: '#000000',
  },
}
SCSS
$custom: #33175b;
$custom-light: #6f568a;
$custom-dark: #000000;
JSON
{
  "hex": "#33175b",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 264.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28788,
    "c": 0.11474,
    "h": 297.5
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#33175B
secondary
#6E923C
accent
#E345A2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #33175B

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

Preview Lab → · Contrast checker → · Palette generator →

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