#31030B#31030B

#31030B is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.4% C 0.074 H 15.9°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#31030B
RGBrgb(49, 3, 11)
HSLhsl(350, 88%, 10%)
HSVhsv(350, 94%, 19%)
CMYKcmyk(0%, 93.9%, 77.6%, 80.8%)
CIE-LABlab(6.71, 23.50, 6.01)
CIE-LCHlch(6.71, 24.26, 14.34°)
OKLaboklab(20.45% 0.0712 0.0203)
OKLCHoklch(20.45% 0.074 15.9)
XYZxyz(1.3597, 0.7425, 0.3883)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31030B #033129
analogous
#310322 #31030B #311203
triadic
#31030B #0B3103 #030B31
tetradic
#31030B #223103 #033129 #120331
square
#31030B #223103 #033129 #120331
split-complementary
#31030B #033112 #032231
monochromatic
#1D0206 #1D0206 #31030B #6B0718 #A40A25

Accessibility & contrast

On white

18.29
#31030B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#31030B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31030B
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31030B#FFFFFF#000000##FFFFFF
##31030B1.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31030b;
/* rgb */ color: rgb(49, 3, 11);
/* oklch */ color: oklch(20.4% 0.074 15.9);
Tailwind
colors: {
  custom: {
    50: '#6d484c',
    500: '#31030b',
    950: '#000000',
  },
}
SCSS
$custom: #31030b;
$custom-light: #6d484c;
$custom-dark: #000000;
JSON
{
  "hex": "#31030b",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 11
  },
  "hsl": {
    "h": 349.565,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20445,
    "c": 0.07405,
    "h": 15.9
  },
  "luminance": 0.00742
}

Semantic roles & 50–950 ramp

primary
#31030B
secondary
#1B7465
accent
#FFD929
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31030B

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

Preview Lab → · Contrast checker → · Palette generator →

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