#331032#331032

#331032 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.076 H 328.7°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#331032
RGBrgb(51, 16, 50)
HSLhsl(302, 52%, 13%)
HSVhsv(302, 69%, 20%)
CMYKcmyk(0%, 68.6%, 2%, 80%)
CIE-LABlab(11.31, 23.17, -14.36)
CIE-LCHlch(11.31, 27.26, 328.22°)
OKLaboklab(24.52% 0.065 -0.0395)
OKLCHoklch(24.52% 0.076 328.7)
XYZxyz(2.1262, 1.3048, 3.1569)
Luminance0.0131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331032 #103311
analogous
#221033 #331032 #331020
triadic
#331032 #323310 #103233
tetradic
#331032 #332210 #103311 #102033
square
#331032 #332210 #103311 #102033
split-complementary
#331032 #203310 #103322
monochromatic
#170717 #170717 #331032 #621F60 #902D8D

Accessibility & contrast

On white

16.65
#331032 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331032
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331032#FFFFFF#000000##FFFFFF
##3310321.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331032;
/* rgb */ color: rgb(51, 16, 50);
/* oklch */ color: oklch(24.5% 0.076 328.7);
Tailwind
colors: {
  custom: {
    50: '#6c516a',
    500: '#331032',
    950: '#000000',
  },
}
SCSS
$custom: #331032;
$custom-light: #6c516a;
$custom-dark: #000000;
JSON
{
  "hex": "#331032",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 50
  },
  "hsl": {
    "h": 301.714,
    "s": 52.239,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24517,
    "c": 0.07603,
    "h": 328.7
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#331032
secondary
#326C34
accent
#DC504C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331032

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

Preview Lab → · Contrast checker → · Palette generator →

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