#31040E#31040E

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

Color values

HEX#31040E
RGBrgb(49, 4, 14)
HSLhsl(347, 85%, 10%)
HSVhsv(347, 92%, 19%)
CMYKcmyk(0%, 91.8%, 71.4%, 80.8%)
CIE-LABlab(6.97, 23.24, 4.99)
CIE-LCHlch(6.97, 23.77, 12.12°)
OKLaboklab(20.69% 0.0707 0.016)
OKLCHoklch(20.69% 0.073 12.7)
XYZxyz(1.3894, 0.7717, 0.4912)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31040E #043127
analogous
#310424 #31040E #311004
triadic
#31040E #0E3104 #040E31
tetradic
#31040E #243104 #043127 #100431
square
#31040E #243104 #043127 #100431
split-complementary
#31040E #043110 #042431
monochromatic
#1C0208 #1C0208 #31040E #6A091E #A20D2E

Accessibility & contrast

On white

18.19
#31040E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31040E
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31040E#FFFFFF#000000##FFFFFF
##31040E1.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100F0E
Deuteranopia (green-blind)
#1C190D
Tritanopia (blue-blind)
#370008
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31040e;
/* rgb */ color: rgb(49, 4, 14);
/* oklch */ color: oklch(20.7% 0.072 12.7);
Tailwind
colors: {
  custom: {
    50: '#6d484d',
    500: '#31040e',
    950: '#000000',
  },
}
SCSS
$custom: #31040e;
$custom-light: #6d484d;
$custom-dark: #000000;
JSON
{
  "hex": "#31040e",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 14
  },
  "hsl": {
    "h": 346.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20686,
    "c": 0.0725,
    "h": 12.7
  },
  "luminance": 0.00772
}

Semantic roles & 50–950 ramp

primary
#31040E
secondary
#1D7360
accent
#FBCD2D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31040E

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

Preview Lab → · Contrast checker → · Palette generator →

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