#31041F#31041F

#31041F is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.079 H 348.6°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#31041F
RGBrgb(49, 4, 31)
HSLhsl(324, 85%, 10%)
HSVhsv(324, 92%, 19%)
CMYKcmyk(0%, 91.8%, 36.7%, 80.8%)
CIE-LABlab(7.58, 25.37, -5.93)
CIE-LCHlch(7.58, 26.05, 346.83°)
OKLaboklab(21.37% 0.0777 -0.0156)
OKLCHoklch(21.37% 0.079 348.6)
XYZxyz(1.5574, 0.8389, 1.3760)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31041F #043116
analogous
#2C0431 #31041F #310408
triadic
#31041F #1F3104 #041F31
tetradic
#31041F #312C04 #043116 #040831
square
#31041F #312C04 #043116 #040831
split-complementary
#31041F #083104 #04312C
monochromatic
#1C0212 #1C0212 #31041F #6A0943 #A20D67

Accessibility & contrast

On white

17.98
#31041F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31041F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31041F
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31041F#FFFFFF#000000##FFFFFF
##31041F1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1220
Deuteranopia (green-blind)
#181A1E
Tritanopia (blue-blind)
#350210
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31041f;
/* rgb */ color: rgb(49, 4, 31);
/* oklch */ color: oklch(21.4% 0.079 348.6);
Tailwind
colors: {
  custom: {
    50: '#6c495a',
    500: '#31041f',
    950: '#000000',
  },
}
SCSS
$custom: #31041f;
$custom-light: #6c495a;
$custom-dark: #000000;
JSON
{
  "hex": "#31041f",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 31
  },
  "hsl": {
    "h": 324,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.2137,
    "c": 0.07921,
    "h": 348.6
  },
  "luminance": 0.00839
}

Semantic roles & 50–950 ramp

primary
#31041F
secondary
#1D7340
accent
#FB7F2D
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31041F

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

Preview Lab → · Contrast checker → · Palette generator →

#31041F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva