#310312#310312

#310312 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.7% C 0.075 H 6.3°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#310312
RGBrgb(49, 3, 18)
HSLhsl(340, 88%, 10%)
HSVhsv(340, 94%, 19%)
CMYKcmyk(0%, 93.9%, 63.3%, 80.8%)
CIE-LABlab(6.88, 24.18, 2.64)
CIE-LCHlch(6.88, 24.32, 6.23°)
OKLaboklab(20.65% 0.0746 0.0082)
OKLCHoklch(20.65% 0.075 6.3)
XYZxyz(1.4085, 0.7620, 0.6451)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310312 #033122
analogous
#310329 #310312 #310B03
triadic
#310312 #123103 #031231
tetradic
#310312 #293103 #033122 #0B0331
square
#310312 #293103 #033122 #0B0331
split-complementary
#310312 #03310B #032931
monochromatic
#1D020B #1D020B #310312 #6B0727 #A40A3C

Accessibility & contrast

On white

18.22
#310312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310312
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310312#FFFFFF#000000##FFFFFF
##3103121.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0F12
Deuteranopia (green-blind)
#1B1911
Tritanopia (blue-blind)
#360009
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310312;
/* rgb */ color: rgb(49, 3, 18);
/* oklch */ color: oklch(20.7% 0.075 6.3);
Tailwind
colors: {
  custom: {
    50: '#6d484f',
    500: '#310312',
    950: '#000000',
  },
}
SCSS
$custom: #310312;
$custom-light: #6d484f;
$custom-dark: #000000;
JSON
{
  "hex": "#310312",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 18
  },
  "hsl": {
    "h": 340.435,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20653,
    "c": 0.07507,
    "h": 6.3
  },
  "luminance": 0.00762
}

Semantic roles & 50–950 ramp

primary
#310312
secondary
#1B7457
accent
#FFB929
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310312

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

Preview Lab → · Contrast checker → · Palette generator →

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