#31040C#31040C

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

Color values

HEX#31040C
RGBrgb(49, 4, 12)
HSLhsl(349, 85%, 10%)
HSVhsv(349, 92%, 19%)
CMYKcmyk(0%, 91.8%, 75.5%, 80.8%)
CIE-LABlab(6.92, 23.06, 5.89)
CIE-LCHlch(6.92, 23.80, 14.32°)
OKLaboklab(20.63% 0.0697 0.0193)
OKLCHoklch(20.63% 0.072 15.5)
XYZxyz(1.3765, 0.7666, 0.4232)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31040C #043129
analogous
#310422 #31040C #311204
triadic
#31040C #0C3104 #040C31
tetradic
#31040C #223104 #043129 #120431
square
#31040C #223104 #043129 #120431
split-complementary
#31040C #043112 #042231
monochromatic
#1C0207 #1C0207 #31040C #6A091A #A20D28

Accessibility & contrast

On white

18.21
#31040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31040C
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31040C#FFFFFF#000000##FFFFFF
##31040C1.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31040c;
/* rgb */ color: rgb(49, 4, 12);
/* oklch */ color: oklch(20.6% 0.072 15.5);
Tailwind
colors: {
  custom: {
    50: '#6d484c',
    500: '#31040c',
    950: '#000000',
  },
}
SCSS
$custom: #31040c;
$custom-light: #6d484c;
$custom-dark: #000000;
JSON
{
  "hex": "#31040c",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 349.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20631,
    "c": 0.07235,
    "h": 15.5
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#31040C
secondary
#1D7364
accent
#FBD62D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31040C

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

Preview Lab → · Contrast checker → · Palette generator →

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