#31020D#31020D

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

Color values

HEX#31020D
RGBrgb(49, 2, 13)
HSLhsl(346, 92%, 10%)
HSVhsv(346, 96%, 19%)
CMYKcmyk(0%, 95.9%, 73.5%, 80.8%)
CIE-LABlab(6.56, 24.20, 4.88)
CIE-LCHlch(6.56, 24.69, 11.40°)
OKLaboklab(20.33% 0.0743 0.0163)
OKLCHoklch(20.33% 0.076 12.4)
XYZxyz(1.3611, 0.7257, 0.4491)
Luminance0.0073 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31020D #023126
analogous
#310225 #31020D #310E02
triadic
#31020D #0D3102 #020D31
tetradic
#31020D #253102 #023126 #0E0231
square
#31020D #253102 #023126 #0E0231
split-complementary
#31020D #02310E #022531
monochromatic
#1D0108 #1D0108 #31020D #6C041D #A7072C

Accessibility & contrast

On white

18.34
#31020D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#31020D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31020D
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31020D#FFFFFF#000000##FFFFFF
##31020D1.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0E0D
Deuteranopia (green-blind)
#1B180C
Tritanopia (blue-blind)
#370006
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31020d;
/* rgb */ color: rgb(49, 2, 13);
/* oklch */ color: oklch(20.3% 0.076 12.4);
Tailwind
colors: {
  custom: {
    50: '#6d474d',
    500: '#31020d',
    950: '#000000',
  },
}
SCSS
$custom: #31020d;
$custom-light: #6d474d;
$custom-dark: #000000;
JSON
{
  "hex": "#31020d",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 13
  },
  "hsl": {
    "h": 345.957,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20334,
    "c": 0.07603,
    "h": 12.4
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#31020D
secondary
#197560
accent
#FFCD29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31020D

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

Preview Lab → · Contrast checker → · Palette generator →

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