#311336#311336

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

Color values

HEX#311336
RGBrgb(49, 19, 54)
HSLhsl(291, 48%, 14%)
HSVhsv(291, 65%, 21%)
CMYKcmyk(9.3%, 64.8%, 0%, 78.8%)
CIE-LABlab(11.86, 21.66, -16.41)
CIE-LCHlch(11.86, 27.18, 322.85°)
OKLaboklab(24.93% 0.0577 -0.0455)
OKLCHoklch(24.93% 0.073 321.7)
XYZxyz(2.1653, 1.3852, 3.6426)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311336 #183613
analogous
#201336 #311336 #36132A
triadic
#311336 #363113 #133631
tetradic
#311336 #362013 #183613 #132A36
square
#311336 #362013 #183613 #132A36
split-complementary
#311336 #2A3613 #133620
monochromatic
#150817 #150817 #311336 #5A2363 #833391

Accessibility & contrast

On white

16.44
#311336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311336
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311336#FFFFFF#000000##FFFFFF
##3113361.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311336;
/* rgb */ color: rgb(49, 19, 54);
/* oklch */ color: oklch(24.9% 0.073 321.7);
Tailwind
colors: {
  custom: {
    50: '#6a526d',
    500: '#311336',
    950: '#000000',
  },
}
SCSS
$custom: #311336;
$custom-light: #6a526d;
$custom-dark: #000000;
JSON
{
  "hex": "#311336",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 54
  },
  "hsl": {
    "h": 291.429,
    "s": 47.945,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24927,
    "c": 0.07349,
    "h": 321.7
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#311336
secondary
#3F6E37
accent
#D85064
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #311336

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

Preview Lab → · Contrast checker → · Palette generator →

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