#331236#331236

#331236 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.077 H 324.2°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#331236
RGBrgb(51, 18, 54)
HSLhsl(295, 50%, 14%)
HSVhsv(295, 67%, 21%)
CMYKcmyk(5.6%, 66.7%, 0%, 78.8%)
CIE-LABlab(11.98, 22.92, -16.20)
CIE-LCHlch(11.98, 28.07, 324.74°)
OKLaboklab(25.09% 0.0623 -0.0448)
OKLCHoklch(25.09% 0.077 324.2)
XYZxyz(2.2473, 1.4029, 3.6417)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331236 #153612
analogous
#211236 #331236 #361227
triadic
#331236 #363312 #123633
tetradic
#331236 #362112 #153612 #122736
square
#331236 #362112 #153612 #122736
split-complementary
#331236 #273612 #123621
monochromatic
#160817 #160817 #331236 #5E2164 #8A3192

Accessibility & contrast

On white

16.40
#331236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#331236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331236
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331236#FFFFFF#000000##FFFFFF
##3312361.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1D37
Deuteranopia (green-blind)
#182135
Tritanopia (blue-blind)
#341721
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331236;
/* rgb */ color: rgb(51, 18, 54);
/* oklch */ color: oklch(25.1% 0.077 324.2);
Tailwind
colors: {
  custom: {
    50: '#6c526d',
    500: '#331236',
    950: '#000000',
  },
}
SCSS
$custom: #331236;
$custom-light: #6c526d;
$custom-dark: #000000;
JSON
{
  "hex": "#331236",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 295,
    "s": 50,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25085,
    "c": 0.07672,
    "h": 324.2
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#331236
secondary
#3A6F35
accent
#DA4E5A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #331236

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

Preview Lab → · Contrast checker → · Palette generator →

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