#33155F#33155F

#33155F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.122 H 296.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#33155F
RGBrgb(51, 21, 95)
HSLhsl(264, 64%, 23%)
HSVhsv(264, 78%, 37%)
CMYKcmyk(46.3%, 77.9%, 0%, 62.7%)
CIE-LABlab(15.83, 32.23, -38.35)
CIE-LCHlch(15.83, 50.09, 310.05°)
OKLaboklab(28.88% 0.0543 -0.1097)
OKLCHoklch(28.88% 0.122 296.3)
XYZxyz(3.6984, 2.0663, 11.0282)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33155F #415F15
analogous
#151C5F #33155F #58155F
triadic
#33155F #5F3315 #155F33
tetradic
#33155F #5F151C #415F15 #155F58
square
#33155F #5F151C #415F15 #155F58
split-complementary
#33155F #5F5815 #1C5F15
monochromatic
#0D0619 #180A2D #33155F #4E2091 #692BC3

Accessibility & contrast

On white

14.86
#33155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#33155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33155F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33155F#FFFFFF#000000##FFFFFF
##33155F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#272838
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #33155f;
/* rgb */ color: rgb(51, 21, 95);
/* oklch */ color: oklch(28.9% 0.122 296.3);
Tailwind
colors: {
  custom: {
    50: '#70558d',
    500: '#33155f',
    950: '#000000',
  },
}
SCSS
$custom: #33155f;
$custom-light: #70558d;
$custom-dark: #000000;
JSON
{
  "hex": "#33155f",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 264.324,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28881,
    "c": 0.12244,
    "h": 296.3
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#33155F
secondary
#71963A
accent
#E741A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #33155F

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

Preview Lab → · Contrast checker → · Palette generator →

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