#310731#310731

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

Color values

HEX#310731
RGBrgb(49, 7, 49)
HSLhsl(300, 75%, 11%)
HSVhsv(300, 86%, 19%)
CMYKcmyk(0%, 85.7%, 0%, 80.8%)
CIE-LABlab(9.21, 26.95, -16.96)
CIE-LCHlch(9.21, 31.84, 327.82°)
OKLaboklab(22.9% 0.0752 -0.047)
OKLCHoklch(22.9% 0.089 328)
XYZxyz(1.8970, 1.0268, 3.0034)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310731 #073107
analogous
#1C0731 #310731 #31071C
triadic
#310731 #313107 #073131
tetradic
#310731 #311C07 #073107 #071C31
square
#310731 #311C07 #073107 #071C31
split-complementary
#310731 #1C3107 #07311C
monochromatic
#1B041B #1B041B #310731 #670F67 #9C169C

Accessibility & contrast

On white

17.42
#310731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310731
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310731#FFFFFF#000000##FFFFFF
##3107311.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021632
Deuteranopia (green-blind)
#121C30
Tritanopia (blue-blind)
#330D1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310731;
/* rgb */ color: rgb(49, 7, 49);
/* oklch */ color: oklch(22.9% 0.089 328.0);
Tailwind
colors: {
  custom: {
    50: '#6b4b69',
    500: '#310731',
    950: '#000000',
  },
}
SCSS
$custom: #310731;
$custom-light: #6b4b69;
$custom-dark: #000000;
JSON
{
  "hex": "#310731",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22903,
    "c": 0.08866,
    "h": 328
  },
  "luminance": 0.01027
}

Semantic roles & 50–950 ramp

primary
#310731
secondary
#237123
accent
#F23636
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310731

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

Preview Lab → · Contrast checker → · Palette generator →

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