#33154C#33154C

#33154C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.099 H 305.9°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#33154C
RGBrgb(51, 21, 76)
HSLhsl(273, 57%, 19%)
HSVhsv(273, 72%, 30%)
CMYKcmyk(32.9%, 72.4%, 0%, 70.2%)
CIE-LABlab(14.19, 26.80, -28.16)
CIE-LCHlch(14.19, 38.88, 313.59°)
OKLaboklab(27.19% 0.0578 -0.0798)
OKLCHoklch(27.19% 0.099 305.9)
XYZxyz(2.9376, 1.7620, 7.0214)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33154C #2E4C15
analogous
#18154C #33154C #4C154A
triadic
#33154C #4C3315 #154C33
tetradic
#33154C #4C1815 #2E4C15 #154A4C
square
#33154C #4C1815 #2E4C15 #154A4C
split-complementary
#33154C #4A4C15 #154C18
monochromatic
#100718 #13081C #33154C #53227C #732FAC

Accessibility & contrast

On white

15.53
#33154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#33154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33154C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33154C#FFFFFF#000000##FFFFFF
##33154C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#07244B
Tritanopia (blue-blind)
#2F212E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #33154c;
/* rgb */ color: rgb(51, 21, 76);
/* oklch */ color: oklch(27.2% 0.099 305.9);
Tailwind
colors: {
  custom: {
    50: '#6d557e',
    500: '#33154c',
    950: '#000000',
  },
}
SCSS
$custom: #33154c;
$custom-light: #6d557e;
$custom-dark: #000000;
JSON
{
  "hex": "#33154c",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 272.727,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27191,
    "c": 0.0985,
    "h": 305.9
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#33154C
secondary
#5B8439
accent
#E0488D
background
#F6F5F7
surface
#ECE8EE
border
#C7C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #33154C

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

Preview Lab → · Contrast checker → · Palette generator →

#33154C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva