#311333#311333

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

Color values

HEX#311333
RGBrgb(49, 19, 51)
HSLhsl(296, 46%, 14%)
HSVhsv(296, 63%, 20%)
CMYKcmyk(3.9%, 62.7%, 0%, 80%)
CIE-LABlab(11.67, 20.95, -14.54)
CIE-LCHlch(11.67, 25.50, 325.25°)
OKLaboklab(24.73% 0.0573 -0.0401)
OKLCHoklch(24.73% 0.07 325)
XYZxyz(2.0970, 1.3578, 3.2830)
Luminance0.0136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311333 #153313
analogous
#211333 #311333 #331325
triadic
#311333 #333113 #133331
tetradic
#311333 #332113 #153313 #132533
square
#311333 #332113 #153313 #132533
split-complementary
#311333 #253313 #133321
monochromatic
#150816 #150816 #311333 #5C2460 #87348C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311333#FFFFFF#000000##FFFFFF
##3113331.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)
#0F1C34
Deuteranopia (green-blind)
#182032
Tritanopia (blue-blind)
#321720
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311333;
/* rgb */ color: rgb(49, 19, 51);
/* oklch */ color: oklch(24.7% 0.070 325.0);
Tailwind
colors: {
  custom: {
    50: '#6a526a',
    500: '#311333',
    950: '#000000',
  },
}
SCSS
$custom: #311333;
$custom-light: #6a526a;
$custom-dark: #000000;
JSON
{
  "hex": "#311333",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 51
  },
  "hsl": {
    "h": 296.25,
    "s": 45.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24732,
    "c": 0.06992,
    "h": 325
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#311333
secondary
#3A6B37
accent
#D5525B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #311333

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

Preview Lab → · Contrast checker → · Palette generator →

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