#310512#310512

#310512 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.0% C 0.071 H 7.8°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#310512
RGBrgb(49, 5, 18)
HSLhsl(342, 81%, 11%)
HSVhsv(342, 90%, 19%)
CMYKcmyk(0%, 89.8%, 63.3%, 80.8%)
CIE-LABlab(7.28, 23.12, 3.21)
CIE-LCHlch(7.28, 23.34, 7.91°)
OKLaboklab(20.97% 0.0707 0.0097)
OKLCHoklch(20.97% 0.071 7.8)
XYZxyz(1.4302, 0.8054, 0.6523)
Luminance0.0080 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310512 #053124
analogous
#310528 #310512 #310E05
triadic
#310512 #123105 #051231
tetradic
#310512 #283105 #053124 #0E0531
square
#310512 #283105 #053124 #0E0531
split-complementary
#310512 #05310E #052831
monochromatic
#1C030A #1C030A #310512 #690B26 #A0103B

Accessibility & contrast

On white

18.09
#310512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310512
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310512#FFFFFF#000000##FFFFFF
##3105121.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101012
Deuteranopia (green-blind)
#1B1911
Tritanopia (blue-blind)
#36000A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310512;
/* rgb */ color: rgb(49, 5, 18);
/* oklch */ color: oklch(21.0% 0.071 7.8);
Tailwind
colors: {
  custom: {
    50: '#6c494f',
    500: '#310512',
    950: '#000000',
  },
}
SCSS
$custom: #310512;
$custom-light: #6c494f;
$custom-dark: #000000;
JSON
{
  "hex": "#310512",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 18
  },
  "hsl": {
    "h": 342.273,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20966,
    "c": 0.07138,
    "h": 7.8
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#310512
secondary
#1F725A
accent
#F8BD30
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310512

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

Preview Lab → · Contrast checker → · Palette generator →

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