#310718#310718

#310718 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.5% C 0.070 H 0.1°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#310718
RGBrgb(49, 7, 24)
HSLhsl(336, 75%, 11%)
HSVhsv(336, 86%, 19%)
CMYKcmyk(0%, 85.7%, 51%, 80.8%)
CIE-LABlab(7.87, 22.75, -0.06)
CIE-LCHlch(7.87, 22.75, 359.85°)
OKLaboklab(21.49% 0.0698 0.0001)
OKLCHoklch(21.49% 0.07 0.1)
XYZxyz(1.5076, 0.8711, 0.9527)
Luminance0.0087 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310718 #073120
analogous
#31072D #310718 #310B07
triadic
#310718 #183107 #071831
tetradic
#310718 #2D3107 #073120 #0B0731
square
#310718 #2D3107 #073120 #0B0731
split-complementary
#310718 #07310B #072D31
monochromatic
#1B040D #1B040D #310718 #670F32 #9C164C

Accessibility & contrast

On white

17.88
#310718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310718 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310718
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310718#FFFFFF#000000##FFFFFF
##3107181.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310718;
/* rgb */ color: rgb(49, 7, 24);
/* oklch */ color: oklch(21.5% 0.070 0.1);
Tailwind
colors: {
  custom: {
    50: '#6c4a54',
    500: '#310718',
    950: '#000000',
  },
}
SCSS
$custom: #310718;
$custom-light: #6c4a54;
$custom-dark: #000000;
JSON
{
  "hex": "#310718",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 24
  },
  "hsl": {
    "h": 335.714,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21488,
    "c": 0.06977,
    "h": 0.1
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#310718
secondary
#237151
accent
#F2A636
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310718

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

Preview Lab → · Contrast checker → · Palette generator →

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