#310131#310131

#310131 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.099 H 328.3°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#310131
RGBrgb(49, 1, 49)
HSLhsl(300, 96%, 10%)
HSVhsv(300, 98%, 19%)
CMYKcmyk(0%, 98%, 0%, 80.8%)
CIE-LABlab(8.10, 30.18, -18.73)
CIE-LCHlch(8.10, 35.52, 328.17°)
OKLaboklab(22.11% 0.0843 -0.0521)
OKLCHoklch(22.11% 0.099 328.3)
XYZxyz(1.8318, 0.8966, 2.9817)
Luminance0.0090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310131 #013101
analogous
#190131 #310131 #310119
triadic
#310131 #313101 #013131
tetradic
#310131 #311901 #013101 #011931
square
#310131 #311901 #013101 #011931
split-complementary
#310131 #193101 #013119
monochromatic
#1E011E #1E011E #310131 #6D026D #A903A9

Accessibility & contrast

On white

17.81
#310131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310131
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310131#FFFFFF#000000##FFFFFF
##3101311.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#0E1A30
Tritanopia (blue-blind)
#330819
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310131;
/* rgb */ color: rgb(49, 1, 49);
/* oklch */ color: oklch(22.1% 0.099 328.3);
Tailwind
colors: {
  custom: {
    50: '#6c4869',
    500: '#310131',
    950: '#000000',
  },
}
SCSS
$custom: #310131;
$custom-light: #6c4869;
$custom-dark: #000000;
JSON
{
  "hex": "#310131",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.22112,
    "c": 0.09912,
    "h": 328.3
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#310131
secondary
#177717
accent
#FF2929
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310131

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

Preview Lab → · Contrast checker → · Palette generator →

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