#310407#310407

#310407 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.5% C 0.073 H 22.2°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#310407
RGBrgb(49, 4, 7)
HSLhsl(356, 85%, 10%)
HSVhsv(356, 92%, 19%)
CMYKcmyk(0%, 91.8%, 85.7%, 80.8%)
CIE-LABlab(6.82, 22.67, 7.82)
CIE-LCHlch(6.82, 23.98, 19.03°)
OKLaboklab(20.51% 0.0672 0.0274)
OKLCHoklch(20.51% 0.073 22.2)
XYZxyz(1.3485, 0.7554, 0.2758)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310407 #04312E
analogous
#31041D #310407 #311704
triadic
#310407 #073104 #040731
tetradic
#310407 #1D3104 #04312E #170431
square
#310407 #1D3104 #04312E #170431
split-complementary
#310407 #043117 #041D31
monochromatic
#1C0204 #1C0204 #310407 #6A090F #A20D17

Accessibility & contrast

On white

18.25
#310407 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310407 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310407
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310407#FFFFFF#000000##FFFFFF
##3104071.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#110F07
Deuteranopia (green-blind)
#1C1906
Tritanopia (blue-blind)
#370005
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310407;
/* rgb */ color: rgb(49, 4, 7);
/* oklch */ color: oklch(20.5% 0.073 22.2);
Tailwind
colors: {
  custom: {
    50: '#6d484a',
    500: '#310407',
    950: '#000000',
  },
}
SCSS
$custom: #310407;
$custom-light: #6d484a;
$custom-dark: #000000;
JSON
{
  "hex": "#310407",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 7
  },
  "hsl": {
    "h": 356,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20513,
    "c": 0.07251,
    "h": 22.2
  },
  "luminance": 0.00755
}

Semantic roles & 50–950 ramp

primary
#310407
secondary
#1D736E
accent
#FBED2D
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310407

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

Preview Lab → · Contrast checker → · Palette generator →

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