#311237#311237

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

Color values

HEX#311237
RGBrgb(49, 18, 55)
HSLhsl(290, 51%, 14%)
HSVhsv(290, 67%, 22%)
CMYKcmyk(10.9%, 67.3%, 0%, 78.4%)
CIE-LABlab(11.70, 22.50, -17.38)
CIE-LCHlch(11.70, 28.44, 322.31°)
OKLaboklab(24.83% 0.0594 -0.0483)
OKLCHoklch(24.83% 0.077 320.9)
XYZxyz(2.1724, 1.3615, 3.7621)
Luminance0.0136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311237 #183712
analogous
#1F1237 #311237 #37122B
triadic
#311237 #373112 #123731
tetradic
#311237 #371F12 #183712 #122B37
square
#311237 #371F12 #183712 #122B37
split-complementary
#311237 #2B3712 #12371F
monochromatic
#150817 #150817 #311237 #5A2165 #833093

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311237#FFFFFF#000000##FFFFFF
##3112371.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)
#0B1D38
Deuteranopia (green-blind)
#162036
Tritanopia (blue-blind)
#311822
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311237;
/* rgb */ color: rgb(49, 18, 55);
/* oklch */ color: oklch(24.8% 0.077 320.9);
Tailwind
colors: {
  custom: {
    50: '#6a526e',
    500: '#311237',
    950: '#000000',
  },
}
SCSS
$custom: #311237;
$custom-light: #6a526e;
$custom-dark: #000000;
JSON
{
  "hex": "#311237",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 290.27,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24831,
    "c": 0.0766,
    "h": 320.9
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#311237
secondary
#3F7035
accent
#DA4E64
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #311237

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

Preview Lab → · Contrast checker → · Palette generator →

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