#310831#310831

#310831 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.087 H 328.0°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#310831
RGBrgb(49, 8, 49)
HSLhsl(300, 72%, 11%)
HSVhsv(300, 84%, 19%)
CMYKcmyk(0%, 83.7%, 0%, 80.8%)
CIE-LABlab(9.39, 26.45, -16.68)
CIE-LCHlch(9.39, 31.27, 327.76°)
OKLaboklab(23.03% 0.0738 -0.0462)
OKLCHoklch(23.03% 0.087 328)
XYZxyz(1.9078, 1.0485, 3.0070)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310831 #083108
analogous
#1C0831 #310831 #31081C
triadic
#310831 #313108 #083131
tetradic
#310831 #311C08 #083108 #081C31
square
#310831 #311C08 #083108 #081C31
split-complementary
#310831 #1C3108 #08311C
monochromatic
#1A041A #1A041A #310831 #661166 #9A199A

Accessibility & contrast

On white

17.36
#310831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310831
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310831#FFFFFF#000000##FFFFFF
##3108311.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031732
Deuteranopia (green-blind)
#131C30
Tritanopia (blue-blind)
#330E1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310831;
/* rgb */ color: rgb(49, 8, 49);
/* oklch */ color: oklch(23.0% 0.087 328.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c69',
    500: '#310831',
    950: '#000000',
  },
}
SCSS
$custom: #310831;
$custom-light: #6b4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#310831",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.23029,
    "c": 0.08703,
    "h": 328
  },
  "luminance": 0.01048
}

Semantic roles & 50–950 ramp

primary
#310831
secondary
#257025
accent
#EF3939
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310831

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

Preview Lab → · Contrast checker → · Palette generator →

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