#33156B#33156B

#33156B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.137 H 291.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#33156B
RGBrgb(51, 21, 107)
HSLhsl(261, 67%, 25%)
HSVhsv(261, 80%, 42%)
CMYKcmyk(52.3%, 80.4%, 0%, 58%)
CIE-LABlab(17.00, 35.75, -44.36)
CIE-LCHlch(17.00, 56.97, 308.87°)
OKLaboklab(30.06% 0.051 -0.1274)
OKLCHoklch(30.06% 0.137 291.8)
XYZxyz(4.2865, 2.3015, 14.1254)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33156B #4D6B15
analogous
#15226B #33156B #5E156B
triadic
#33156B #6B3315 #156B33
tetradic
#33156B #6B1522 #4D6B15 #156B5E
square
#33156B #6B1522 #4D6B15 #156B5E
split-complementary
#33156B #6B5E15 #226B15
monochromatic
#0C051A #1B0B38 #33156B #4B1F9E #6429D1

Accessibility & contrast

On white

14.38
#33156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#33156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33156B
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33156B#FFFFFF#000000##FFFFFF
##33156B1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#202D3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #33156b;
/* rgb */ color: rgb(51, 21, 107);
/* oklch */ color: oklch(30.1% 0.137 291.8);
Tailwind
colors: {
  custom: {
    50: '#725696',
    500: '#33156b',
    950: '#000000',
  },
}
SCSS
$custom: #33156b;
$custom-light: #725696;
$custom-dark: #000000;
JSON
{
  "hex": "#33156b",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 260.93,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30058,
    "c": 0.13719,
    "h": 291.8
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#33156B
secondary
#7EA23A
accent
#EA3EAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33156B

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

Preview Lab → · Contrast checker → · Palette generator →

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