#33176F#33176F

#33176F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.140 H 290.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#33176F
RGBrgb(51, 23, 111)
HSLhsl(259, 66%, 26%)
HSVhsv(259, 79%, 44%)
CMYKcmyk(54.1%, 79.3%, 0%, 56.5%)
CIE-LABlab(17.76, 35.92, -45.72)
CIE-LCHlch(17.76, 58.14, 308.16°)
OKLaboklab(30.71% 0.0481 -0.1314)
OKLCHoklch(30.71% 0.14 290.1)
XYZxyz(4.5401, 2.4641, 15.2722)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33176F #536F17
analogous
#17276F #33176F #5F176F
triadic
#33176F #6F3317 #176F33
tetradic
#33176F #6F1727 #536F17 #176F5F
square
#33176F #6F1727 #536F17 #176F5F
split-complementary
#33176F #6F5F17 #276F17
monochromatic
#0C0519 #1C0C3C #33176F #4A22A2 #622DD3

Accessibility & contrast

On white

14.07
#33176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#33176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33176F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33176F#FFFFFF#000000##FFFFFF
##33176F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#1D2F42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #33176f;
/* rgb */ color: rgb(51, 23, 111);
/* oklch */ color: oklch(30.7% 0.140 290.1);
Tailwind
colors: {
  custom: {
    50: '#725799',
    500: '#33176f',
    950: '#000000',
  },
}
SCSS
$custom: #33176f;
$custom-light: #725799;
$custom-dark: #000000;
JSON
{
  "hex": "#33176f",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 259.091,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30713,
    "c": 0.13989,
    "h": 290.1
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#33176F
secondary
#84A53D
accent
#E93FB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #33176F

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

Preview Lab → · Contrast checker → · Palette generator →

#33176F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva