#31020A#31020A

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

Color values

HEX#31020A
RGBrgb(49, 2, 10)
HSLhsl(350, 92%, 10%)
HSVhsv(350, 96%, 19%)
CMYKcmyk(0%, 95.9%, 79.6%, 80.8%)
CIE-LABlab(6.49, 23.95, 6.11)
CIE-LCHlch(6.49, 24.71, 14.32°)
OKLaboklab(20.26% 0.0728 0.0212)
OKLCHoklch(20.26% 0.076 16.3)
XYZxyz(1.3433, 0.7185, 0.3551)
Luminance0.0072 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31020A #023129
analogous
#310222 #31020A #311102
triadic
#31020A #0A3102 #020A31
tetradic
#31020A #223102 #023129 #110231
square
#31020A #223102 #023129 #110231
split-complementary
#31020A #023111 #022231
monochromatic
#1D0106 #1D0106 #31020A #6C0416 #A70722

Accessibility & contrast

On white

18.36
#31020A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31020A
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31020A#FFFFFF#000000##FFFFFF
##31020A1.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31020a;
/* rgb */ color: rgb(49, 2, 10);
/* oklch */ color: oklch(20.3% 0.076 16.3);
Tailwind
colors: {
  custom: {
    50: '#6d474b',
    500: '#31020a',
    950: '#000000',
  },
}
SCSS
$custom: #31020a;
$custom-light: #6d474b;
$custom-dark: #000000;
JSON
{
  "hex": "#31020a",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 10
  },
  "hsl": {
    "h": 349.787,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20256,
    "c": 0.07582,
    "h": 16.3
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#31020A
secondary
#197566
accent
#FFDB29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31020A

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

Preview Lab → · Contrast checker → · Palette generator →

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