#31070F#31070F

#31070F is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.2% C 0.068 H 13.9°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#31070F
RGBrgb(49, 7, 15)
HSLhsl(349, 75%, 11%)
HSVhsv(349, 86%, 19%)
CMYKcmyk(0%, 85.7%, 69.4%, 80.8%)
CIE-LABlab(7.58, 21.75, 5.37)
CIE-LCHlch(7.58, 22.40, 13.87°)
OKLaboklab(21.18% 0.0656 0.0163)
OKLCHoklch(21.18% 0.068 13.9)
XYZxyz(1.4290, 0.8396, 0.5387)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31070F #073129
analogous
#310724 #31070F #311407
triadic
#31070F #0F3107 #070F31
tetradic
#31070F #243107 #073129 #140731
square
#31070F #243107 #073129 #140731
split-complementary
#31070F #073114 #072431
monochromatic
#1B0408 #1B0408 #31070F #670F1F #9C1630

Accessibility & contrast

On white

17.98
#31070F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31070F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31070F
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31070F#FFFFFF#000000##FFFFFF
##31070F1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12110F
Deuteranopia (green-blind)
#1D1A0E
Tritanopia (blue-blind)
#37010A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31070f;
/* rgb */ color: rgb(49, 7, 15);
/* oklch */ color: oklch(21.2% 0.068 13.9);
Tailwind
colors: {
  custom: {
    50: '#6c4a4e',
    500: '#31070f',
    950: '#000000',
  },
}
SCSS
$custom: #31070f;
$custom-light: #6c4a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#31070f",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 15
  },
  "hsl": {
    "h": 348.571,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21178,
    "c": 0.06754,
    "h": 13.9
  },
  "luminance": 0.00839
}

Semantic roles & 50–950 ramp

primary
#31070F
secondary
#237162
accent
#F2CE36
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31070F

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

Preview Lab → · Contrast checker → · Palette generator →

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