#31040A#31040A

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

Color values

HEX#31040A
RGBrgb(49, 4, 10)
HSLhsl(352, 85%, 10%)
HSVhsv(352, 92%, 19%)
CMYKcmyk(0%, 91.8%, 79.6%, 80.8%)
CIE-LABlab(6.88, 22.90, 6.68)
CIE-LCHlch(6.88, 23.86, 16.27°)
OKLaboklab(20.58% 0.0687 0.0225)
OKLCHoklch(20.58% 0.072 18.1)
XYZxyz(1.3650, 0.7619, 0.3623)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31040A #04312B
analogous
#310420 #31040A #311404
triadic
#31040A #0A3104 #040A31
tetradic
#31040A #203104 #04312B #140431
square
#31040A #203104 #04312B #140431
split-complementary
#31040A #043114 #042031
monochromatic
#1C0206 #1C0206 #31040A #6A0916 #A20D21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31040A#FFFFFF#000000##FFFFFF
##31040A1.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)
#100F0A
Deuteranopia (green-blind)
#1C1909
Tritanopia (blue-blind)
#370006
Achromatopsia (no color)
#151515

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#31040A
secondary
#1D7368
accent
#FBE02D
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31040A

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

Preview Lab → · Contrast checker → · Palette generator →

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