#31040F#31040F

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

Color values

HEX#31040F
RGBrgb(49, 4, 15)
HSLhsl(345, 85%, 10%)
HSVhsv(345, 92%, 19%)
CMYKcmyk(0%, 91.8%, 69.4%, 80.8%)
CIE-LABlab(7.00, 23.34, 4.51)
CIE-LCHlch(7.00, 23.77, 10.94°)
OKLaboklab(20.72% 0.0712 0.0143)
OKLCHoklch(20.72% 0.073 11.3)
XYZxyz(1.3964, 0.7745, 0.5278)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31040F #043126
analogous
#310425 #31040F #310F04
triadic
#31040F #0F3104 #040F31
tetradic
#31040F #253104 #043126 #0F0431
square
#31040F #253104 #043126 #0F0431
split-complementary
#31040F #04310F #042531
monochromatic
#1C0209 #1C0209 #31040F #6A0920 #A20D32

Accessibility & contrast

On white

18.18
#31040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31040F
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31040F#FFFFFF#000000##FFFFFF
##31040F1.0018.181.1518.18
#FFFFFF18.181.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0F0F
Deuteranopia (green-blind)
#1B190E
Tritanopia (blue-blind)
#370008
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31040f;
/* rgb */ color: rgb(49, 4, 15);
/* oklch */ color: oklch(20.7% 0.073 11.3);
Tailwind
colors: {
  custom: {
    50: '#6d484e',
    500: '#31040f',
    950: '#000000',
  },
}
SCSS
$custom: #31040f;
$custom-light: #6d484e;
$custom-dark: #000000;
JSON
{
  "hex": "#31040f",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 345.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20715,
    "c": 0.07262,
    "h": 11.3
  },
  "luminance": 0.00774
}

Semantic roles & 50–950 ramp

primary
#31040F
secondary
#1D735E
accent
#FBC92D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31040F

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

Preview Lab → · Contrast checker → · Palette generator →

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