#311331#311331

#311331 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.068 H 327.4°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#311331
RGBrgb(49, 19, 49)
HSLhsl(300, 44%, 13%)
HSVhsv(300, 61%, 19%)
CMYKcmyk(0%, 61.2%, 0%, 80.8%)
CIE-LABlab(11.56, 20.49, -13.27)
CIE-LCHlch(11.56, 24.41, 327.07°)
OKLaboklab(24.61% 0.057 -0.0364)
OKLCHoklch(24.61% 0.068 327.4)
XYZxyz(2.0538, 1.3406, 3.0557)
Luminance0.0134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311331 #133113
analogous
#221331 #311331 #311322
triadic
#311331 #313113 #133131
tetradic
#311331 #312213 #133113 #132231
square
#311331 #312213 #133113 #132231
split-complementary
#311331 #223113 #133122
monochromatic
#160916 #160916 #311331 #5D245D #893589

Accessibility & contrast

On white

16.56
#311331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311331
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311331#FFFFFF#000000##FFFFFF
##3113311.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101C32
Deuteranopia (green-blind)
#192030
Tritanopia (blue-blind)
#33161F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311331;
/* rgb */ color: rgb(49, 19, 49);
/* oklch */ color: oklch(24.6% 0.068 327.4);
Tailwind
colors: {
  custom: {
    50: '#6a5269',
    500: '#311331',
    950: '#000000',
  },
}
SCSS
$custom: #311331;
$custom-light: #6a5269;
$custom-dark: #000000;
JSON
{
  "hex": "#311331",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 44.118,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24607,
    "c": 0.06761,
    "h": 327.4
  },
  "luminance": 0.0134
}

Semantic roles & 50–950 ramp

primary
#311331
secondary
#376937
accent
#D45454
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #311331

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

Preview Lab → · Contrast checker → · Palette generator →

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