#310816#310816

#310816 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.6% C 0.067 H 3.9°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#310816
RGBrgb(49, 8, 22)
HSLhsl(340, 72%, 11%)
HSVhsv(340, 84%, 19%)
CMYKcmyk(0%, 83.7%, 55.1%, 80.8%)
CIE-LABlab(7.99, 21.96, 1.61)
CIE-LCHlch(7.99, 22.02, 4.20°)
OKLaboklab(21.56% 0.0671 0.0045)
OKLCHoklch(21.56% 0.067 3.9)
XYZxyz(1.4984, 0.8848, 0.8508)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310816 #083123
analogous
#31082A #310816 #310E08
triadic
#310816 #163108 #081631
tetradic
#310816 #2A3108 #083123 #0E0831
square
#310816 #2A3108 #083123 #0E0831
split-complementary
#310816 #08310E #082A31
monochromatic
#1A040C #1A040C #310816 #66112E #9A1945

Accessibility & contrast

On white

17.84
#310816 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310816 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310816
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310816#FFFFFF#000000##FFFFFF
##3108161.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111216
Deuteranopia (green-blind)
#1C1A15
Tritanopia (blue-blind)
#36030E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310816;
/* rgb */ color: rgb(49, 8, 22);
/* oklch */ color: oklch(21.6% 0.067 3.9);
Tailwind
colors: {
  custom: {
    50: '#6c4b52',
    500: '#310816',
    950: '#000000',
  },
}
SCSS
$custom: #310816;
$custom-light: #6c4b52;
$custom-dark: #000000;
JSON
{
  "hex": "#310816",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 22
  },
  "hsl": {
    "h": 339.512,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21556,
    "c": 0.06729,
    "h": 3.9
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#310816
secondary
#257056
accent
#EFB139
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310816

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

Preview Lab → · Contrast checker → · Palette generator →

#310816 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva