#331031#331031

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

Color values

HEX#331031
RGBrgb(51, 16, 49)
HSLhsl(303, 52%, 13%)
HSVhsv(303, 69%, 20%)
CMYKcmyk(0%, 68.6%, 3.9%, 80%)
CIE-LABlab(11.25, 22.96, -13.72)
CIE-LCHlch(11.25, 26.74, 329.13°)
OKLaboklab(24.45% 0.0648 -0.0377)
OKLCHoklch(24.45% 0.075 329.8)
XYZxyz(2.1049, 1.2963, 3.0445)
Luminance0.0130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331031 #103312
analogous
#231033 #331031 #33101F
triadic
#331031 #313310 #103133
tetradic
#331031 #332310 #103312 #101F33
square
#331031 #332310 #103312 #101F33
split-complementary
#331031 #1F3310 #103323
monochromatic
#170716 #170716 #331031 #621F5E #902D8B

Accessibility & contrast

On white

16.68
#331031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331031
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331031#FFFFFF#000000##FFFFFF
##3310311.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1B32
Deuteranopia (green-blind)
#192030
Tritanopia (blue-blind)
#35141E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #331031;
/* rgb */ color: rgb(51, 16, 49);
/* oklch */ color: oklch(24.5% 0.075 329.8);
Tailwind
colors: {
  custom: {
    50: '#6c5069',
    500: '#331031',
    950: '#000000',
  },
}
SCSS
$custom: #331031;
$custom-light: #6c5069;
$custom-dark: #000000;
JSON
{
  "hex": "#331031",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 303.429,
    "s": 52.239,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24453,
    "c": 0.07497,
    "h": 329.8
  },
  "luminance": 0.01296
}

Semantic roles & 50–950 ramp

primary
#331031
secondary
#326C36
accent
#DC544C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331031

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

Preview Lab → · Contrast checker → · Palette generator →

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