#310818#310818

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

Color values

HEX#310818
RGBrgb(49, 8, 24)
HSLhsl(337, 72%, 11%)
HSVhsv(337, 84%, 19%)
CMYKcmyk(0%, 83.7%, 51%, 80.8%)
CIE-LABlab(8.06, 22.20, 0.23)
CIE-LCHlch(8.06, 22.20, 0.58°)
OKLaboklab(21.63% 0.068 0.0008)
OKLCHoklch(21.63% 0.068 0.7)
XYZxyz(1.5184, 0.8928, 0.9563)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310818 #083121
analogous
#31082C #310818 #310C08
triadic
#310818 #183108 #081831
tetradic
#310818 #2C3108 #083121 #0C0831
square
#310818 #2C3108 #083121 #0C0831
split-complementary
#310818 #08310C #082C31
monochromatic
#1A040D #1A040D #310818 #661132 #9A194C

Accessibility & contrast

On white

17.82
#310818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310818
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310818#FFFFFF#000000##FFFFFF
##3108181.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101318
Deuteranopia (green-blind)
#1C1B17
Tritanopia (blue-blind)
#36040F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310818;
/* rgb */ color: rgb(49, 8, 24);
/* oklch */ color: oklch(21.6% 0.068 0.7);
Tailwind
colors: {
  custom: {
    50: '#6c4b54',
    500: '#310818',
    950: '#000000',
  },
}
SCSS
$custom: #310818;
$custom-light: #6c4b54;
$custom-dark: #000000;
JSON
{
  "hex": "#310818",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 24
  },
  "hsl": {
    "h": 336.585,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21633,
    "c": 0.06803,
    "h": 0.7
  },
  "luminance": 0.00893
}

Semantic roles & 50–950 ramp

primary
#310818
secondary
#257053
accent
#EFA839
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310818

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

Preview Lab → · Contrast checker → · Palette generator →

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