#31020B#31020B

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

Color values

HEX#31020B
RGBrgb(49, 2, 11)
HSLhsl(349, 92%, 10%)
HSVhsv(349, 96%, 19%)
CMYKcmyk(0%, 95.9%, 77.6%, 80.8%)
CIE-LABlab(6.51, 24.03, 5.72)
CIE-LCHlch(6.51, 24.70, 13.40°)
OKLaboklab(20.28% 0.0733 0.0196)
OKLCHoklch(20.28% 0.076 15)
XYZxyz(1.3489, 0.7208, 0.3846)
Luminance0.0072 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31020B #023128
analogous
#310222 #31020B #311102
triadic
#31020B #0B3102 #020B31
tetradic
#31020B #223102 #023128 #110231
square
#31020B #223102 #023128 #110231
split-complementary
#31020B #023111 #022231
monochromatic
#1D0107 #1D0107 #31020B #6C0418 #A70725

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31020B#FFFFFF#000000##FFFFFF
##31020B1.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)
#0F0E0B
Deuteranopia (green-blind)
#1B180A
Tritanopia (blue-blind)
#370005
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #31020b;
/* rgb */ color: rgb(49, 2, 11);
/* oklch */ color: oklch(20.3% 0.076 15.0);
Tailwind
colors: {
  custom: {
    50: '#6d474c',
    500: '#31020b',
    950: '#000000',
  },
}
SCSS
$custom: #31020b;
$custom-light: #6d474c;
$custom-dark: #000000;
JSON
{
  "hex": "#31020b",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 11
  },
  "hsl": {
    "h": 348.511,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20281,
    "c": 0.07586,
    "h": 15
  },
  "luminance": 0.00721
}

Semantic roles & 50–950 ramp

primary
#31020B
secondary
#197564
accent
#FFD629
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31020B

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

Preview Lab → · Contrast checker → · Palette generator →

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