#33175C#33175C

#33175C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 297.1°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#33175C
RGBrgb(51, 23, 92)
HSLhsl(264, 60%, 23%)
HSVhsv(264, 75%, 36%)
CMYKcmyk(44.6%, 75%, 0%, 63.9%)
CIE-LABlab(15.95, 30.25, -36.15)
CIE-LCHlch(15.95, 47.14, 309.92°)
OKLaboklab(28.88% 0.0528 -0.1033)
OKLCHoklch(28.88% 0.116 297.1)
XYZxyz(3.6029, 2.0892, 10.3366)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33175C #405C17
analogous
#171D5C #33175C #56175C
triadic
#33175C #5C3317 #175C33
tetradic
#33175C #5C171D #405C17 #175C56
square
#33175C #5C171D #405C17 #175C56
split-complementary
#33175C #5C5617 #1D5C17
monochromatic
#0E0618 #180B2B #33175C #4E238D #692FBE

Accessibility & contrast

On white

14.81
#33175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#33175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33175C
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33175C#FFFFFF#000000##FFFFFF
##33175C1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#292837
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #33175c;
/* rgb */ color: rgb(51, 23, 92);
/* oklch */ color: oklch(28.9% 0.116 297.1);
Tailwind
colors: {
  custom: {
    50: '#6f568b',
    500: '#33175c',
    950: '#000000',
  },
}
SCSS
$custom: #33175c;
$custom-light: #6f568b;
$custom-dark: #000000;
JSON
{
  "hex": "#33175c",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 264.348,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28879,
    "c": 0.11603,
    "h": 297.1
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#33175C
secondary
#70933C
accent
#E345A3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #33175C

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

Preview Lab → · Contrast checker → · Palette generator →

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