#331037#331037

#331037 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.082 H 323.5°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#331037
RGBrgb(51, 16, 55)
HSLhsl(294, 55%, 14%)
HSVhsv(294, 71%, 22%)
CMYKcmyk(7.3%, 70.9%, 0%, 78.4%)
CIE-LABlab(11.62, 24.29, -17.48)
CIE-LCHlch(11.62, 29.93, 324.26°)
OKLaboklab(24.85% 0.0655 -0.0485)
OKLCHoklch(24.85% 0.082 323.5)
XYZxyz(2.2401, 1.3503, 3.7563)
Luminance0.0135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331037 #143710
analogous
#201037 #331037 #371028
triadic
#331037 #373310 #103733
tetradic
#331037 #372010 #143710 #102837
square
#331037 #372010 #143710 #102837
split-complementary
#331037 #283710 #103720
monochromatic
#160718 #160718 #331037 #5F1E66 #8B2C96

Accessibility & contrast

On white

16.54
#331037 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#331037 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331037
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331037#FFFFFF#000000##FFFFFF
##3310371.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C38
Deuteranopia (green-blind)
#162036
Tritanopia (blue-blind)
#341621
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331037;
/* rgb */ color: rgb(51, 16, 55);
/* oklch */ color: oklch(24.8% 0.082 323.5);
Tailwind
colors: {
  custom: {
    50: '#6c516e',
    500: '#331037',
    950: '#000000',
  },
}
SCSS
$custom: #331037;
$custom-light: #6c516e;
$custom-dark: #000000;
JSON
{
  "hex": "#331037",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 55
  },
  "hsl": {
    "h": 293.846,
    "s": 54.93,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24848,
    "c": 0.0815,
    "h": 323.5
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#331037
secondary
#397132
accent
#DE4A59
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #331037

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

Preview Lab → · Contrast checker → · Palette generator →

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