#331038#331038

#331038 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.9% C 0.083 H 322.5°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#331038
RGBrgb(51, 16, 56)
HSLhsl(293, 56%, 14%)
HSVhsv(293, 71%, 22%)
CMYKcmyk(8.9%, 71.4%, 0%, 78%)
CIE-LABlab(11.69, 24.52, -18.10)
CIE-LCHlch(11.69, 30.48, 323.57°)
OKLaboklab(24.92% 0.0655 -0.0503)
OKLCHoklch(24.92% 0.083 322.5)
XYZxyz(2.2643, 1.3600, 3.8839)
Luminance0.0136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331038 #153810
analogous
#1F1038 #331038 #381029
triadic
#331038 #383310 #103833
tetradic
#331038 #381F10 #153810 #102938
square
#331038 #381F10 #153810 #102938
split-complementary
#331038 #293810 #10381F
monochromatic
#160718 #160718 #331038 #5E1E68 #8A2B97

Accessibility & contrast

On white

16.51
#331038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331038
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331038#FFFFFF#000000##FFFFFF
##3310381.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#341622
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331038;
/* rgb */ color: rgb(51, 16, 56);
/* oklch */ color: oklch(24.9% 0.083 322.5);
Tailwind
colors: {
  custom: {
    50: '#6c516f',
    500: '#331038',
    950: '#000000',
  },
}
SCSS
$custom: #331038;
$custom-light: #6c516f;
$custom-dark: #000000;
JSON
{
  "hex": "#331038",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 56
  },
  "hsl": {
    "h": 292.5,
    "s": 55.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24917,
    "c": 0.08262,
    "h": 322.5
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#331038
secondary
#3A7232
accent
#DF495C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #331038

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

Preview Lab → · Contrast checker → · Palette generator →

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