#33155A#33155A

#33155A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.116 H 298.5°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#33155A
RGBrgb(51, 21, 90)
HSLhsl(266, 62%, 22%)
HSVhsv(266, 77%, 35%)
CMYKcmyk(43.3%, 76.7%, 0%, 64.7%)
CIE-LABlab(15.37, 30.78, -35.75)
CIE-LCHlch(15.37, 47.17, 310.72°)
OKLaboklab(28.41% 0.0555 -0.1021)
OKLCHoklch(28.41% 0.116 298.5)
XYZxyz(3.4784, 1.9783, 9.8695)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33155A #3C5A15
analogous
#151A5A #33155A #56155A
triadic
#33155A #5A3315 #155A33
tetradic
#33155A #5A151A #3C5A15 #155A56
square
#33155A #5A151A #3C5A15 #155A56
split-complementary
#33155A #5A5615 #1A5A15
monochromatic
#0E0619 #170928 #33155A #4F218C #6B2CBD

Accessibility & contrast

On white

15.05
#33155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#33155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33155A
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33155A#FFFFFF#000000##FFFFFF
##33155A1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#2A2636
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #33155a;
/* rgb */ color: rgb(51, 21, 90);
/* oklch */ color: oklch(28.4% 0.116 298.5);
Tailwind
colors: {
  custom: {
    50: '#6f5589',
    500: '#33155a',
    950: '#000000',
  },
}
SCSS
$custom: #33155a;
$custom-light: #6f5589;
$custom-dark: #000000;
JSON
{
  "hex": "#33155a",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 266.087,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28414,
    "c": 0.11621,
    "h": 298.5
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#33155A
secondary
#6B9239
accent
#E5439F
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #33155A

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

Preview Lab → · Contrast checker → · Palette generator →

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