#310B18#310B18

#310B18 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.1% C 0.063 H 2.7°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#310B18
RGBrgb(49, 11, 24)
HSLhsl(339, 63%, 12%)
HSVhsv(339, 78%, 19%)
CMYKcmyk(0%, 77.6%, 51%, 80.8%)
CIE-LABlab(8.64, 20.62, 1.06)
CIE-LCHlch(8.64, 20.65, 2.94°)
OKLaboklab(22.06% 0.063 0.003)
OKLCHoklch(22.06% 0.063 2.7)
XYZxyz(1.5513, 0.9584, 0.9673)
Luminance0.0096 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B18 #0B3124
analogous
#310B2B #310B18 #31110B
triadic
#310B18 #18310B #0B1831
tetradic
#310B18 #2B310B #0B3124 #110B31
square
#310B18 #2B310B #0B3124 #110B31
split-complementary
#310B18 #0B3111 #0B2B31
monochromatic
#19060C #19060C #310B18 #631630 #952149

Accessibility & contrast

On white

17.62
#310B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B18
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B18#FFFFFF#000000##FFFFFF
##310B181.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131418
Deuteranopia (green-blind)
#1D1C17
Tritanopia (blue-blind)
#360710
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310b18;
/* rgb */ color: rgb(49, 11, 24);
/* oklch */ color: oklch(22.1% 0.063 2.7);
Tailwind
colors: {
  custom: {
    50: '#6c4c54',
    500: '#310b18',
    950: '#000000',
  },
}
SCSS
$custom: #310b18;
$custom-light: #6c4c54;
$custom-dark: #000000;
JSON
{
  "hex": "#310b18",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 24
  },
  "hsl": {
    "h": 339.474,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2206,
    "c": 0.06307,
    "h": 2.7
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#310B18
secondary
#2A6E57
accent
#E6AE41
background
#F6F4F4
surface
#EBE7E7
border
#C6C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310B18

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

Preview Lab → · Contrast checker → · Palette generator →

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