#31040B#31040B

#31040B is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.6% C 0.072 H 16.8°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#31040B
RGBrgb(49, 4, 11)
HSLhsl(351, 85%, 10%)
HSVhsv(351, 92%, 19%)
CMYKcmyk(0%, 91.8%, 77.6%, 80.8%)
CIE-LABlab(6.90, 22.98, 6.30)
CIE-LCHlch(6.90, 23.83, 15.32°)
OKLaboklab(20.61% 0.0692 0.0209)
OKLCHoklch(20.61% 0.072 16.8)
XYZxyz(1.3706, 0.7642, 0.3919)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31040B #04312A
analogous
#310421 #31040B #311304
triadic
#31040B #0B3104 #040B31
tetradic
#31040B #213104 #04312A #130431
square
#31040B #213104 #04312A #130431
split-complementary
#31040B #043113 #042131
monochromatic
#1C0206 #1C0206 #31040B #6A0918 #A20D24

Accessibility & contrast

On white

18.22
#31040B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#31040B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31040B
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31040B#FFFFFF#000000##FFFFFF
##31040B1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100F0B
Deuteranopia (green-blind)
#1C190A
Tritanopia (blue-blind)
#370007
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31040b;
/* rgb */ color: rgb(49, 4, 11);
/* oklch */ color: oklch(20.6% 0.072 16.8);
Tailwind
colors: {
  custom: {
    50: '#6d484b',
    500: '#31040b',
    950: '#000000',
  },
}
SCSS
$custom: #31040b;
$custom-light: #6d484b;
$custom-dark: #000000;
JSON
{
  "hex": "#31040b",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 11
  },
  "hsl": {
    "h": 350.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20606,
    "c": 0.07232,
    "h": 16.8
  },
  "luminance": 0.00764
}

Semantic roles & 50–950 ramp

primary
#31040B
secondary
#1D7366
accent
#FBDB2D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31040B

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

Preview Lab → · Contrast checker → · Palette generator →

#31040B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva