#31050F#31050F

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

Color values

HEX#31050F
RGBrgb(49, 5, 15)
HSLhsl(346, 81%, 11%)
HSVhsv(346, 90%, 19%)
CMYKcmyk(0%, 89.8%, 69.4%, 80.8%)
CIE-LABlab(7.19, 22.81, 4.80)
CIE-LCHlch(7.19, 23.31, 11.88°)
OKLaboklab(20.87% 0.0693 0.015)
OKLCHoklch(20.87% 0.071 12.2)
XYZxyz(1.4073, 0.7962, 0.5314)
Luminance0.0080 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31050F #053127
analogous
#310525 #31050F #311105
triadic
#31050F #0F3105 #050F31
tetradic
#31050F #253105 #053127 #110531
square
#31050F #253105 #053127 #110531
split-complementary
#31050F #053111 #052531
monochromatic
#1C0308 #1C0308 #31050F #690B20 #A01031

Accessibility & contrast

On white

18.12
#31050F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31050F
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31050F#FFFFFF#000000##FFFFFF
##31050F1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10100F
Deuteranopia (green-blind)
#1C190E
Tritanopia (blue-blind)
#370009
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31050f;
/* rgb */ color: rgb(49, 5, 15);
/* oklch */ color: oklch(20.9% 0.071 12.2);
Tailwind
colors: {
  custom: {
    50: '#6d494e',
    500: '#31050f',
    950: '#000000',
  },
}
SCSS
$custom: #31050f;
$custom-light: #6d494e;
$custom-dark: #000000;
JSON
{
  "hex": "#31050f",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 15
  },
  "hsl": {
    "h": 346.364,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20872,
    "c": 0.07087,
    "h": 12.2
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#31050F
secondary
#1F7260
accent
#F8CA30
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #31050F

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

Preview Lab → · Contrast checker → · Palette generator →

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