#33155B#33155B

#33155B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.117 H 298.1°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#33155B
RGBrgb(51, 21, 91)
HSLhsl(266, 63%, 22%)
HSVhsv(266, 77%, 36%)
CMYKcmyk(44%, 76.9%, 0%, 64.3%)
CIE-LABlab(15.46, 31.06, -36.27)
CIE-LCHlch(15.46, 47.76, 310.58°)
OKLaboklab(28.51% 0.0553 -0.1036)
OKLCHoklch(28.51% 0.117 298.1)
XYZxyz(3.5212, 1.9954, 10.0951)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33155B #3D5B15
analogous
#151A5B #33155B #56155B
triadic
#33155B #5B3315 #155B33
tetradic
#33155B #5B151A #3D5B15 #155B56
square
#33155B #5B151A #3D5B15 #155B56
split-complementary
#33155B #5B5615 #1A5B15
monochromatic
#0E0619 #170A29 #33155B #4F208D #6B2CBE

Accessibility & contrast

On white

15.01
#33155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33155B
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33155B#FFFFFF#000000##FFFFFF
##33155B1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #33155b;
/* rgb */ color: rgb(51, 21, 91);
/* oklch */ color: oklch(28.5% 0.117 298.1);
Tailwind
colors: {
  custom: {
    50: '#6f558a',
    500: '#33155b',
    950: '#000000',
  },
}
SCSS
$custom: #33155b;
$custom-light: #6f558a;
$custom-dark: #000000;
JSON
{
  "hex": "#33155b",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 265.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28506,
    "c": 0.11745,
    "h": 298.1
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#33155B
secondary
#6C9239
accent
#E642A0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #33155B

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

Preview Lab → · Contrast checker → · Palette generator →

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