#311138#311138

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

Color values

HEX#311138
RGBrgb(49, 17, 56)
HSLhsl(289, 53%, 14%)
HSVhsv(289, 70%, 22%)
CMYKcmyk(12.5%, 69.6%, 0%, 78%)
CIE-LABlab(11.55, 23.33, -18.34)
CIE-LCHlch(11.55, 29.68, 321.83°)
OKLaboklab(24.74% 0.0611 -0.0511)
OKLCHoklch(24.74% 0.08 320.1)
XYZxyz(2.1808, 1.3395, 3.8843)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311138 #183811
analogous
#1E1138 #311138 #38112C
triadic
#311138 #383111 #113831
tetradic
#311138 #381E11 #183811 #112C38
square
#311138 #381E11 #183811 #112C38
split-complementary
#311138 #2C3811 #11381E
monochromatic
#150717 #150717 #311138 #5A1F67 #832E96

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311138#FFFFFF#000000##FFFFFF
##3111381.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)
#081C39
Deuteranopia (green-blind)
#142037
Tritanopia (blue-blind)
#311722
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311138;
/* rgb */ color: rgb(49, 17, 56);
/* oklch */ color: oklch(24.7% 0.080 320.1);
Tailwind
colors: {
  custom: {
    50: '#6b516f',
    500: '#311138',
    950: '#000000',
  },
}
SCSS
$custom: #311138;
$custom-light: #6b516f;
$custom-dark: #000000;
JSON
{
  "hex": "#311138",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 289.231,
    "s": 53.425,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24743,
    "c": 0.07964,
    "h": 320.1
  },
  "luminance": 0.01339
}

Semantic roles & 50–950 ramp

primary
#311138
secondary
#3F7134
accent
#DD4B65
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #311138

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

Preview Lab → · Contrast checker → · Palette generator →

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