#31070C#31070C

#31070C is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.1% C 0.067 H 18.3°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#31070C
RGBrgb(49, 7, 12)
HSLhsl(353, 75%, 11%)
HSVhsv(353, 86%, 19%)
CMYKcmyk(0%, 85.7%, 75.5%, 80.8%)
CIE-LABlab(7.51, 21.48, 6.74)
CIE-LCHlch(7.51, 22.52, 17.43°)
OKLaboklab(21.1% 0.0641 0.0212)
OKLCHoklch(21.1% 0.067 18.3)
XYZxyz(1.4091, 0.8317, 0.4341)
Luminance0.0083 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31070C #07312C
analogous
#310721 #31070C #311707
triadic
#31070C #0C3107 #070C31
tetradic
#31070C #213107 #07312C #170731
square
#31070C #213107 #07312C #170731
split-complementary
#31070C #073117 #072131
monochromatic
#1B0407 #1B0407 #31070C #670F19 #9C1626

Accessibility & contrast

On white

18.01
#31070C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31070C
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31070C#FFFFFF#000000##FFFFFF
##31070C1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12110C
Deuteranopia (green-blind)
#1D1A0B
Tritanopia (blue-blind)
#370009
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31070c;
/* rgb */ color: rgb(49, 7, 12);
/* oklch */ color: oklch(21.1% 0.067 18.3);
Tailwind
colors: {
  custom: {
    50: '#6c4a4c',
    500: '#31070c',
    950: '#000000',
  },
}
SCSS
$custom: #31070c;
$custom-light: #6c4a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#31070c",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 12
  },
  "hsl": {
    "h": 352.857,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21099,
    "c": 0.06748,
    "h": 18.3
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#31070C
secondary
#237167
accent
#F2DB36
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31070C

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

Preview Lab → · Contrast checker → · Palette generator →

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