#31051A#31051A

#31051A is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.3% C 0.074 H 356.0°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#31051A
RGBrgb(49, 5, 26)
HSLhsl(331, 81%, 11%)
HSVhsv(331, 90%, 19%)
CMYKcmyk(0%, 89.8%, 46.9%, 80.8%)
CIE-LABlab(7.55, 24.10, -2.08)
CIE-LCHlch(7.55, 24.19, 355.06°)
OKLaboklab(21.28% 0.0742 -0.0052)
OKLCHoklch(21.28% 0.074 356)
XYZxyz(1.5075, 0.8363, 1.0591)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31051A #05311C
analogous
#310530 #31051A #310605
triadic
#31051A #1A3105 #051A31
tetradic
#31051A #303105 #05311C #060531
square
#31051A #303105 #05311C #060531
split-complementary
#31051A #053106 #053031
monochromatic
#1C030F #1C030F #31051A #690B37 #A01055

Accessibility & contrast

On white

17.99
#31051A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31051A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31051A
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31051A#FFFFFF#000000##FFFFFF
##31051A1.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D111B
Deuteranopia (green-blind)
#1A1A19
Tritanopia (blue-blind)
#36020E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31051a;
/* rgb */ color: rgb(49, 5, 26);
/* oklch */ color: oklch(21.3% 0.074 356.0);
Tailwind
colors: {
  custom: {
    50: '#6c4956',
    500: '#31051a',
    950: '#000000',
  },
}
SCSS
$custom: #31051a;
$custom-light: #6c4956;
$custom-dark: #000000;
JSON
{
  "hex": "#31051a",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 26
  },
  "hsl": {
    "h": 331.364,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21278,
    "c": 0.07435,
    "h": 356
  },
  "luminance": 0.00836
}

Semantic roles & 50–950 ramp

primary
#31051A
secondary
#1F724B
accent
#F89830
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31051A

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

Preview Lab → · Contrast checker → · Palette generator →

#31051A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva