#31010C#31010C

#31010C is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.1% C 0.078 H 12.8°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#31010C
RGBrgb(49, 1, 12)
HSLhsl(346, 96%, 10%)
HSVhsv(346, 98%, 19%)
CMYKcmyk(0%, 98%, 75.5%, 80.8%)
CIE-LABlab(6.34, 24.63, 5.02)
CIE-LCHlch(6.34, 25.14, 11.53°)
OKLaboklab(20.14% 0.0759 0.0173)
OKLCHoklch(20.14% 0.078 12.8)
XYZxyz(1.3440, 0.7014, 0.4124)
Luminance0.0070 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31010C #013126
analogous
#310124 #31010C #310E01
triadic
#31010C #0C3101 #010C31
tetradic
#31010C #243101 #013126 #0E0131
square
#31010C #243101 #013126 #0E0131
split-complementary
#31010C #01310E #012431
monochromatic
#1E0107 #1E0107 #31010C #6D021B #A90329

Accessibility & contrast

On white

18.42
#31010C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#31010C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31010C
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31010C#FFFFFF#000000##FFFFFF
##31010C1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0D0C
Deuteranopia (green-blind)
#1B180B
Tritanopia (blue-blind)
#370005
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #31010c;
/* rgb */ color: rgb(49, 1, 12);
/* oklch */ color: oklch(20.1% 0.078 12.8);
Tailwind
colors: {
  custom: {
    50: '#6d474c',
    500: '#31010c',
    950: '#000000',
  },
}
SCSS
$custom: #31010c;
$custom-light: #6d474c;
$custom-dark: #000000;
JSON
{
  "hex": "#31010c",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 12
  },
  "hsl": {
    "h": 346.25,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.2014,
    "c": 0.07783,
    "h": 12.8
  },
  "luminance": 0.00701
}

Semantic roles & 50–950 ramp

primary
#31010C
secondary
#177761
accent
#FFCE29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31010C

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

Preview Lab → · Contrast checker → · Palette generator →

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