#31030C#31030C

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

Color values

HEX#31030C
RGBrgb(49, 3, 12)
HSLhsl(348, 88%, 10%)
HSVhsv(348, 94%, 19%)
CMYKcmyk(0%, 93.9%, 75.5%, 80.8%)
CIE-LABlab(6.73, 23.59, 5.60)
CIE-LCHlch(6.73, 24.25, 13.35°)
OKLaboklab(20.47% 0.0717 0.0187)
OKLCHoklch(20.47% 0.074 14.6)
XYZxyz(1.3657, 0.7448, 0.4196)
Luminance0.0075 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31030C #033128
analogous
#310323 #31030C #311103
triadic
#31030C #0C3103 #030C31
tetradic
#31030C #233103 #033128 #110331
square
#31030C #233103 #033128 #110331
split-complementary
#31030C #033111 #032331
monochromatic
#1D0207 #1D0207 #31030C #6B071A #A40A28

Accessibility & contrast

On white

18.28
#31030C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31030C
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31030C#FFFFFF#000000##FFFFFF
##31030C1.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31030c;
/* rgb */ color: rgb(49, 3, 12);
/* oklch */ color: oklch(20.5% 0.074 14.6);
Tailwind
colors: {
  custom: {
    50: '#6d484c',
    500: '#31030c',
    950: '#000000',
  },
}
SCSS
$custom: #31030c;
$custom-light: #6d484c;
$custom-dark: #000000;
JSON
{
  "hex": "#31030c",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 12
  },
  "hsl": {
    "h": 348.261,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.2047,
    "c": 0.0741,
    "h": 14.6
  },
  "luminance": 0.00745
}

Semantic roles & 50–950 ramp

primary
#31030C
secondary
#1B7463
accent
#FFD529
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31030C

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

Preview Lab → · Contrast checker → · Palette generator →

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