#31042C#31042C

#31042C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.089 H 333.2°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#31042C
RGBrgb(49, 4, 44)
HSLhsl(307, 85%, 10%)
HSVhsv(307, 92%, 19%)
CMYKcmyk(0%, 91.8%, 10.2%, 80.8%)
CIE-LABlab(8.32, 27.56, -14.66)
CIE-LCHlch(8.32, 31.22, 331.99°)
OKLaboklab(22.16% 0.0797 -0.0403)
OKLCHoklch(22.16% 0.089 333.2)
XYZxyz(1.7647, 0.9218, 2.4674)
Luminance0.0092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31042C #043109
analogous
#1F0431 #31042C #310415
triadic
#31042C #2C3104 #042C31
tetradic
#31042C #311F04 #043109 #041531
square
#31042C #311F04 #043109 #041531
split-complementary
#31042C #153104 #04311F
monochromatic
#1C0219 #1C0219 #31042C #6A095F #A20D92

Accessibility & contrast

On white

17.73
#31042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#31042C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31042C
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31042C#FFFFFF#000000##FFFFFF
##31042C1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142D
Deuteranopia (green-blind)
#131A2B
Tritanopia (blue-blind)
#340817
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31042c;
/* rgb */ color: rgb(49, 4, 44);
/* oklch */ color: oklch(22.2% 0.089 333.2);
Tailwind
colors: {
  custom: {
    50: '#6b4a65',
    500: '#31042c',
    950: '#000000',
  },
}
SCSS
$custom: #31042c;
$custom-light: #6b4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#31042c",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 306.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22157,
    "c": 0.08929,
    "h": 333.2
  },
  "luminance": 0.00922
}

Semantic roles & 50–950 ramp

primary
#31042C
secondary
#1D7327
accent
#FB442D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31042C

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

Preview Lab → · Contrast checker → · Palette generator →

#31042C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva