#31050C#31050C

#31050C is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.8% C 0.071 H 16.4°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#31050C
RGBrgb(49, 5, 12)
HSLhsl(350, 81%, 11%)
HSVhsv(350, 90%, 19%)
CMYKcmyk(0%, 89.8%, 75.5%, 80.8%)
CIE-LABlab(7.12, 22.54, 6.17)
CIE-LCHlch(7.12, 23.37, 15.31°)
OKLaboklab(20.79% 0.0678 0.02)
OKLCHoklch(20.79% 0.071 16.4)
XYZxyz(1.3874, 0.7883, 0.4269)
Luminance0.0079 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31050C #05312A
analogous
#310522 #31050C #311405
triadic
#31050C #0C3105 #050C31
tetradic
#31050C #223105 #05312A #140531
square
#31050C #223105 #05312A #140531
split-complementary
#31050C #053114 #052231
monochromatic
#1C0307 #1C0307 #31050C #690B1A #A01027

Accessibility & contrast

On white

18.14
#31050C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#31050C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31050C
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31050C#FFFFFF#000000##FFFFFF
##31050C1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11100C
Deuteranopia (green-blind)
#1C190B
Tritanopia (blue-blind)
#370008
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31050c;
/* rgb */ color: rgb(49, 5, 12);
/* oklch */ color: oklch(20.8% 0.071 16.4);
Tailwind
colors: {
  custom: {
    50: '#6d494c',
    500: '#31050c',
    950: '#000000',
  },
}
SCSS
$custom: #31050c;
$custom-light: #6d494c;
$custom-dark: #000000;
JSON
{
  "hex": "#31050c",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 12
  },
  "hsl": {
    "h": 350.455,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2079,
    "c": 0.07066,
    "h": 16.4
  },
  "luminance": 0.00788
}

Semantic roles & 50–950 ramp

primary
#31050C
secondary
#1F7265
accent
#F8D830
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31050C

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

Preview Lab → · Contrast checker → · Palette generator →

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