#331333#331333

#331333 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.071 H 327.4°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#331333
RGBrgb(51, 19, 51)
HSLhsl(300, 46%, 14%)
HSVhsv(300, 63%, 20%)
CMYKcmyk(0%, 62.7%, 0%, 80%)
CIE-LABlab(12.02, 21.64, -13.98)
CIE-LCHlch(12.02, 25.76, 327.15°)
OKLaboklab(25.05% 0.0602 -0.0384)
OKLCHoklch(25.05% 0.071 327.4)
XYZxyz(2.1956, 1.4087, 3.2876)
Luminance0.0141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331333 #133313
analogous
#231333 #331333 #331323
triadic
#331333 #333313 #133333
tetradic
#331333 #332313 #133313 #132333
square
#331333 #332313 #133313 #132333
split-complementary
#331333 #233313 #133323
monochromatic
#160816 #160816 #331333 #602460 #8C348C

Accessibility & contrast

On white

16.38
#331333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#331333 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331333
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331333#FFFFFF#000000##FFFFFF
##3313331.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101D34
Deuteranopia (green-blind)
#1A2132
Tritanopia (blue-blind)
#351720
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #331333;
/* rgb */ color: rgb(51, 19, 51);
/* oklch */ color: oklch(25.1% 0.071 327.4);
Tailwind
colors: {
  custom: {
    50: '#6c526a',
    500: '#331333',
    950: '#000000',
  },
}
SCSS
$custom: #331333;
$custom-light: #6c526a;
$custom-dark: #000000;
JSON
{
  "hex": "#331333",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 51
  },
  "hsl": {
    "h": 300,
    "s": 45.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25054,
    "c": 0.0714,
    "h": 327.4
  },
  "luminance": 0.01409
}

Semantic roles & 50–950 ramp

primary
#331333
secondary
#376B37
accent
#D55252
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331333

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

Preview Lab → · Contrast checker → · Palette generator →

#331333 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva