#310431#310431

#310431 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.094 H 328.1°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#310431
RGBrgb(49, 4, 49)
HSLhsl(300, 85%, 10%)
HSVhsv(300, 92%, 19%)
CMYKcmyk(0%, 91.8%, 0%, 80.8%)
CIE-LABlab(8.67, 28.52, -17.83)
CIE-LCHlch(8.67, 33.63, 327.99°)
OKLaboklab(22.51% 0.0796 -0.0495)
OKLCHoklch(22.51% 0.094 328.1)
XYZxyz(1.8644, 0.9617, 2.9926)
Luminance0.0096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310431 #043104
analogous
#1A0431 #310431 #31041A
triadic
#310431 #313104 #043131
tetradic
#310431 #311A04 #043104 #041A31
square
#310431 #311A04 #043104 #041A31
split-complementary
#310431 #1A3104 #04311A
monochromatic
#1C021C #1C021C #310431 #6A096A #A20DA2

Accessibility & contrast

On white

17.61
#310431 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310431 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310431
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310431#FFFFFF#000000##FFFFFF
##3104311.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#101B30
Tritanopia (blue-blind)
#330B1A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310431;
/* rgb */ color: rgb(49, 4, 49);
/* oklch */ color: oklch(22.5% 0.094 328.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a69',
    500: '#310431',
    950: '#000000',
  },
}
SCSS
$custom: #310431;
$custom-light: #6b4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#310431",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22514,
    "c": 0.09374,
    "h": 328.1
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#310431
secondary
#1D731D
accent
#FB2D2D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310431

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

Preview Lab → · Contrast checker → · Palette generator →

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