#310412#310412

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

Color values

HEX#310412
RGBrgb(49, 4, 18)
HSLhsl(341, 85%, 10%)
HSVhsv(341, 92%, 19%)
CMYKcmyk(0%, 91.8%, 63.3%, 80.8%)
CIE-LABlab(7.08, 23.65, 2.93)
CIE-LCHlch(7.08, 23.83, 7.05°)
OKLaboklab(20.81% 0.0726 0.009)
OKLCHoklch(20.81% 0.073 7)
XYZxyz(1.4194, 0.7837, 0.6487)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310412 #043123
analogous
#310428 #310412 #310C04
triadic
#310412 #123104 #041231
tetradic
#310412 #283104 #043123 #0C0431
square
#310412 #283104 #043123 #0C0431
split-complementary
#310412 #04310C #042831
monochromatic
#1C020A #1C020A #310412 #6A0927 #A20D3C

Accessibility & contrast

On white

18.16
#310412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310412
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310412#FFFFFF#000000##FFFFFF
##3104121.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310412;
/* rgb */ color: rgb(49, 4, 18);
/* oklch */ color: oklch(20.8% 0.073 7.0);
Tailwind
colors: {
  custom: {
    50: '#6d484f',
    500: '#310412',
    950: '#000000',
  },
}
SCSS
$custom: #310412;
$custom-light: #6d484f;
$custom-dark: #000000;
JSON
{
  "hex": "#310412",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 18
  },
  "hsl": {
    "h": 341.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20811,
    "c": 0.07319,
    "h": 7
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#310412
secondary
#1D7359
accent
#FBBB2D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310412

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

Preview Lab → · Contrast checker → · Palette generator →

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