#311337#311337

#311337 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.075 H 320.7°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#311337
RGBrgb(49, 19, 55)
HSLhsl(290, 49%, 15%)
HSVhsv(290, 65%, 22%)
CMYKcmyk(10.9%, 65.5%, 0%, 78.4%)
CIE-LABlab(11.92, 21.90, -17.03)
CIE-LCHlch(11.92, 27.75, 322.13°)
OKLaboklab(24.99% 0.0578 -0.0473)
OKLCHoklch(24.99% 0.075 320.7)
XYZxyz(2.1890, 1.3946, 3.7676)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311337 #193713
analogous
#1F1337 #311337 #37132B
triadic
#311337 #373113 #133731
tetradic
#311337 #371F13 #193713 #132B37
square
#311337 #371F13 #193713 #132B37
split-complementary
#311337 #2B3713 #13371F
monochromatic
#140817 #140817 #311337 #5A2364 #823292

Accessibility & contrast

On white

16.42
#311337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311337
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311337#FFFFFF#000000##FFFFFF
##3113371.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1D38
Deuteranopia (green-blind)
#162036
Tritanopia (blue-blind)
#311822
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311337;
/* rgb */ color: rgb(49, 19, 55);
/* oklch */ color: oklch(25.0% 0.075 320.7);
Tailwind
colors: {
  custom: {
    50: '#6a526e',
    500: '#311337',
    950: '#000000',
  },
}
SCSS
$custom: #311337;
$custom-light: #6a526e;
$custom-dark: #000000;
JSON
{
  "hex": "#311337",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 55
  },
  "hsl": {
    "h": 290,
    "s": 48.649,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24994,
    "c": 0.07469,
    "h": 320.7
  },
  "luminance": 0.01395
}

Semantic roles & 50–950 ramp

primary
#311337
secondary
#406F37
accent
#D85066
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #311337

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

Preview Lab → · Contrast checker → · Palette generator →

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