#310A18#310A18

#310A18 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.9% C 0.065 H 2.0°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#310A18
RGBrgb(49, 10, 24)
HSLhsl(338, 66%, 12%)
HSVhsv(338, 80%, 19%)
CMYKcmyk(0%, 79.6%, 51%, 80.8%)
CIE-LABlab(8.45, 21.14, 0.78)
CIE-LCHlch(8.45, 21.16, 2.12°)
OKLaboklab(21.92% 0.0647 0.0023)
OKLCHoklch(21.92% 0.065 2)
XYZxyz(1.5401, 0.9362, 0.9636)
Luminance0.0094 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A18 #0A3123
analogous
#310A2C #310A18 #31100A
triadic
#310A18 #18310A #0A1831
tetradic
#310A18 #2C310A #0A3123 #100A31
square
#310A18 #2C310A #0A3123 #100A31
split-complementary
#310A18 #0A3110 #0A2C31
monochromatic
#19050C #19050C #310A18 #641431 #971F4A

Accessibility & contrast

On white

17.69
#310A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A18
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A18#FFFFFF#000000##FFFFFF
##310A181.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121418
Deuteranopia (green-blind)
#1C1B17
Tritanopia (blue-blind)
#360610
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310a18;
/* rgb */ color: rgb(49, 10, 24);
/* oklch */ color: oklch(21.9% 0.065 2.0);
Tailwind
colors: {
  custom: {
    50: '#6c4c54',
    500: '#310a18',
    950: '#000000',
  },
}
SCSS
$custom: #310a18;
$custom-light: #6c4c54;
$custom-dark: #000000;
JSON
{
  "hex": "#310a18",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 24
  },
  "hsl": {
    "h": 338.462,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21917,
    "c": 0.0647,
    "h": 2
  },
  "luminance": 0.00936
}

Semantic roles & 50–950 ramp

primary
#310A18
secondary
#296E55
accent
#E9AC3F
background
#F6F4F4
surface
#EBE7E7
border
#C6C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310A18

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

Preview Lab → · Contrast checker → · Palette generator →

#310A18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva