#31020C#31020C

#31020C is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.3% C 0.076 H 13.7°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#31020C
RGBrgb(49, 2, 12)
HSLhsl(347, 92%, 10%)
HSVhsv(347, 96%, 19%)
CMYKcmyk(0%, 95.9%, 75.5%, 80.8%)
CIE-LABlab(6.53, 24.11, 5.31)
CIE-LCHlch(6.53, 24.69, 12.42°)
OKLaboklab(20.31% 0.0738 0.018)
OKLCHoklch(20.31% 0.076 13.7)
XYZxyz(1.3548, 0.7231, 0.4160)
Luminance0.0072 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31020C #023127
analogous
#310224 #31020C #310F02
triadic
#31020C #0C3102 #020C31
tetradic
#31020C #243102 #023127 #0F0231
square
#31020C #243102 #023127 #0F0231
split-complementary
#31020C #02310F #022431
monochromatic
#1D0107 #1D0107 #31020C #6C041A #A70729

Accessibility & contrast

On white

18.35
#31020C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31020C
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31020C#FFFFFF#000000##FFFFFF
##31020C1.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31020c;
/* rgb */ color: rgb(49, 2, 12);
/* oklch */ color: oklch(20.3% 0.076 13.7);
Tailwind
colors: {
  custom: {
    50: '#6d474c',
    500: '#31020c',
    950: '#000000',
  },
}
SCSS
$custom: #31020c;
$custom-light: #6d474c;
$custom-dark: #000000;
JSON
{
  "hex": "#31020c",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 12
  },
  "hsl": {
    "h": 347.234,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20307,
    "c": 0.07593,
    "h": 13.7
  },
  "luminance": 0.00723
}

Semantic roles & 50–950 ramp

primary
#31020C
secondary
#197562
accent
#FFD129
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31020C

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

Preview Lab → · Contrast checker → · Palette generator →

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