#33156E#33156E

#33156E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.141 H 290.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#33156E
RGBrgb(51, 21, 110)
HSLhsl(260, 68%, 26%)
HSVhsv(260, 81%, 43%)
CMYKcmyk(53.6%, 80.9%, 0%, 56.9%)
CIE-LABlab(17.30, 36.64, -45.81)
CIE-LCHlch(17.30, 58.66, 308.65°)
OKLaboklab(30.36% 0.0501 -0.1316)
OKLCHoklch(30.36% 0.141 290.8)
XYZxyz(4.4471, 2.3657, 14.9711)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33156E #506E15
analogous
#15236E #33156E #5F156E
triadic
#33156E #6E3315 #156E33
tetradic
#33156E #6E1523 #506E15 #156E5F
square
#33156E #6E1523 #506E15 #156E5F
split-complementary
#33156E #6E5F15 #236E15
monochromatic
#0C051A #1B0B3B #33156E #4B1FA1 #6329D5

Accessibility & contrast

On white

14.25
#33156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#33156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33156E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33156E#FFFFFF#000000##FFFFFF
##33156E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#1E2E41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #33156e;
/* rgb */ color: rgb(51, 21, 110);
/* oklch */ color: oklch(30.4% 0.141 290.8);
Tailwind
colors: {
  custom: {
    50: '#725698',
    500: '#33156e',
    950: '#000000',
  },
}
SCSS
$custom: #33156e;
$custom-light: #725698;
$custom-dark: #000000;
JSON
{
  "hex": "#33156e",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 260.225,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30364,
    "c": 0.14083,
    "h": 290.8
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#33156E
secondary
#81A43A
accent
#EB3DB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #33156E

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

Preview Lab → · Contrast checker → · Palette generator →

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