#310918#310918

#310918 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.8% C 0.066 H 1.3°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#310918
RGBrgb(49, 9, 24)
HSLhsl(338, 69%, 11%)
HSVhsv(338, 82%, 19%)
CMYKcmyk(0%, 81.6%, 51%, 80.8%)
CIE-LABlab(8.26, 21.67, 0.51)
CIE-LCHlch(8.26, 21.67, 1.34°)
OKLaboklab(21.78% 0.0663 0.0016)
OKLCHoklch(21.78% 0.066 1.3)
XYZxyz(1.5293, 0.9145, 0.9600)
Luminance0.0091 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310918 #093122
analogous
#31092C #310918 #310E09
triadic
#310918 #183109 #091831
tetradic
#310918 #2C3109 #093122 #0E0931
square
#310918 #2C3109 #093122 #0E0931
split-complementary
#310918 #09310E #092C31
monochromatic
#1A050D #1A050D #310918 #651231 #981C4B

Accessibility & contrast

On white

17.75
#310918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310918
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310918#FFFFFF#000000##FFFFFF
##3109181.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310918;
/* rgb */ color: rgb(49, 9, 24);
/* oklch */ color: oklch(21.8% 0.066 1.3);
Tailwind
colors: {
  custom: {
    50: '#6c4b54',
    500: '#310918',
    950: '#000000',
  },
}
SCSS
$custom: #310918;
$custom-light: #6c4b54;
$custom-dark: #000000;
JSON
{
  "hex": "#310918",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 24
  },
  "hsl": {
    "h": 337.5,
    "s": 68.966,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21776,
    "c": 0.06634,
    "h": 1.3
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#310918
secondary
#276F54
accent
#ECAA3C
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310918

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

Preview Lab → · Contrast checker → · Palette generator →

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