#310316#310316

#310316 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.8% C 0.076 H 0.6°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#310316
RGBrgb(49, 3, 22)
HSLhsl(335, 88%, 10%)
HSVhsv(335, 94%, 19%)
CMYKcmyk(0%, 93.9%, 55.1%, 80.8%)
CIE-LABlab(7.01, 24.65, 0.18)
CIE-LCHlch(7.01, 24.65, 0.41°)
OKLaboklab(20.8% 0.0764 0.0008)
OKLCHoklch(20.8% 0.076 0.6)
XYZxyz(1.4441, 0.7762, 0.8327)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310316 #03311E
analogous
#31032D #310316 #310703
triadic
#310316 #163103 #031631
tetradic
#310316 #2D3103 #03311E #070331
square
#310316 #2D3103 #03311E #070331
split-complementary
#310316 #033107 #032D31
monochromatic
#1D020D #1D020D #310316 #6B0730 #A40A4A

Accessibility & contrast

On white

18.18
#310316 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310316 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310316
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310316#FFFFFF#000000##FFFFFF
##3103161.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1016
Deuteranopia (green-blind)
#1A1915
Tritanopia (blue-blind)
#36000B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310316;
/* rgb */ color: rgb(49, 3, 22);
/* oklch */ color: oklch(20.8% 0.076 0.6);
Tailwind
colors: {
  custom: {
    50: '#6c4852',
    500: '#310316',
    950: '#000000',
  },
}
SCSS
$custom: #310316;
$custom-light: #6c4852;
$custom-dark: #000000;
JSON
{
  "hex": "#310316",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 22
  },
  "hsl": {
    "h": 335.217,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20803,
    "c": 0.07639,
    "h": 0.6
  },
  "luminance": 0.00776
}

Semantic roles & 50–950 ramp

primary
#310316
secondary
#1B7450
accent
#FFA629
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310316

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

Preview Lab → · Contrast checker → · Palette generator →

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