#310704#310704

#310704 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.9% C 0.069 H 29.8°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#310704
RGBrgb(49, 7, 4)
HSLhsl(4, 85%, 10%)
HSVhsv(4, 92%, 19%)
CMYKcmyk(0%, 85.7%, 91.8%, 80.8%)
CIE-LABlab(7.35, 20.87, 9.81)
CIE-LCHlch(7.35, 23.06, 25.18°)
OKLaboklab(20.92% 0.0597 0.0342)
OKLCHoklch(20.92% 0.069 29.8)
XYZxyz(1.3647, 0.8139, 0.2001)
Luminance0.0081 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310704 #042E31
analogous
#310417 #310704 #311D04
triadic
#310704 #043107 #070431
tetradic
#310704 #173104 #042E31 #1D0431
square
#310704 #173104 #042E31 #1D0431
split-complementary
#310704 #04311D #041731
monochromatic
#1C0402 #1C0402 #310704 #6A0F09 #A2170D

Accessibility & contrast

On white

18.06
#310704 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310704 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310704
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310704#FFFFFF#000000##FFFFFF
##3107041.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131003
Deuteranopia (green-blind)
#1E1A03
Tritanopia (blue-blind)
#370007
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310704;
/* rgb */ color: rgb(49, 7, 4);
/* oklch */ color: oklch(20.9% 0.069 29.8);
Tailwind
colors: {
  custom: {
    50: '#6d4a48',
    500: '#310704',
    950: '#000000',
  },
}
SCSS
$custom: #310704;
$custom-light: #6d4a48;
$custom-dark: #000000;
JSON
{
  "hex": "#310704",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 4
  },
  "hsl": {
    "h": 4,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20919,
    "c": 0.06879,
    "h": 29.8
  },
  "luminance": 0.00814
}

Semantic roles & 50–950 ramp

primary
#310704
secondary
#1D6E73
accent
#EDFB2D
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310704

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

Preview Lab → · Contrast checker → · Palette generator →

#310704 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva