#331033#331033

#331033 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.077 H 327.6°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#331033
RGBrgb(51, 16, 51)
HSLhsl(300, 52%, 13%)
HSVhsv(300, 69%, 20%)
CMYKcmyk(0%, 68.6%, 0%, 80%)
CIE-LABlab(11.37, 23.39, -14.99)
CIE-LCHlch(11.37, 27.78, 327.35°)
OKLaboklab(24.58% 0.0651 -0.0413)
OKLCHoklch(24.58% 0.077 327.6)
XYZxyz(2.1480, 1.3135, 3.2717)
Luminance0.0131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331033 #103310
analogous
#211033 #331033 #331021
triadic
#331033 #333310 #103333
tetradic
#331033 #332110 #103310 #102133
square
#331033 #332110 #103310 #102133
split-complementary
#331033 #213310 #103321
monochromatic
#170717 #170717 #331033 #621F62 #902D90

Accessibility & contrast

On white

16.63
#331033 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#331033 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331033
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331033#FFFFFF#000000##FFFFFF
##3310331.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1B34
Deuteranopia (green-blind)
#182032
Tritanopia (blue-blind)
#35141F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #331033;
/* rgb */ color: rgb(51, 16, 51);
/* oklch */ color: oklch(24.6% 0.077 327.6);
Tailwind
colors: {
  custom: {
    50: '#6c516b',
    500: '#331033',
    950: '#000000',
  },
}
SCSS
$custom: #331033;
$custom-light: #6c516b;
$custom-dark: #000000;
JSON
{
  "hex": "#331033",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 51
  },
  "hsl": {
    "h": 300,
    "s": 52.239,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24581,
    "c": 0.07711,
    "h": 327.6
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#331033
secondary
#326C32
accent
#DC4C4C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331033

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

Preview Lab → · Contrast checker → · Palette generator →

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