#310C07#310C07

#310C07 is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.7% C 0.062 H 30.8°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#310C07
RGBrgb(49, 12, 7)
HSLhsl(7, 75%, 11%)
HSVhsv(7, 86%, 19%)
CMYKcmyk(0%, 75.5%, 85.7%, 80.8%)
CIE-LABlab(8.41, 18.42, 10.13)
CIE-LCHlch(8.41, 21.02, 28.81°)
OKLaboklab(21.74% 0.0529 0.0315)
OKLCHoklch(21.74% 0.062 30.8)
XYZxyz(1.4366, 0.9315, 0.3051)
Luminance0.0093 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C07 #072C31
analogous
#310717 #310C07 #312107
triadic
#310C07 #07310C #0C0731
tetradic
#310C07 #173107 #072C31 #210731
square
#310C07 #173107 #072C31 #210731
split-complementary
#310C07 #073121 #071731
monochromatic
#1B0704 #1B0704 #310C07 #67190F #9C2616

Accessibility & contrast

On white

17.70
#310C07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310C07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C07
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C07#FFFFFF#000000##FFFFFF
##310C071.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161306
Deuteranopia (green-blind)
#1F1B06
Tritanopia (blue-blind)
#37040B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310c07;
/* rgb */ color: rgb(49, 12, 7);
/* oklch */ color: oklch(21.7% 0.062 30.8);
Tailwind
colors: {
  custom: {
    50: '#6c4d4a',
    500: '#310c07',
    950: '#000000',
  },
}
SCSS
$custom: #310c07;
$custom-light: #6c4d4a;
$custom-dark: #000000;
JSON
{
  "hex": "#310c07",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 7
  },
  "hsl": {
    "h": 7.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21743,
    "c": 0.06158,
    "h": 30.8
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#310C07
secondary
#236771
accent
#DBF236
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310C07

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

Preview Lab → · Contrast checker → · Palette generator →

#310C07 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva