#310418#310418

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

Color values

HEX#310418
RGBrgb(49, 4, 24)
HSLhsl(333, 85%, 10%)
HSVhsv(333, 92%, 19%)
CMYKcmyk(0%, 91.8%, 51%, 80.8%)
CIE-LABlab(7.28, 24.37, -0.92)
CIE-LCHlch(7.28, 24.39, 357.84°)
OKLaboklab(21.04% 0.0753 -0.0022)
OKLCHoklch(21.04% 0.075 358.3)
XYZxyz(1.4750, 0.8059, 0.9419)
Luminance0.0081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310418 #04311D
analogous
#31042E #310418 #310604
triadic
#310418 #183104 #041831
tetradic
#310418 #2E3104 #04311D #060431
square
#310418 #2E3104 #04311D #060431
split-complementary
#310418 #043106 #042E31
monochromatic
#1C020E #1C020E #310418 #6A0934 #A20D4F

Accessibility & contrast

On white

18.08
#310418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310418
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310418#FFFFFF#000000##FFFFFF
##3104181.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1019
Deuteranopia (green-blind)
#1A1917
Tritanopia (blue-blind)
#36000C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310418;
/* rgb */ color: rgb(49, 4, 24);
/* oklch */ color: oklch(21.0% 0.075 358.3);
Tailwind
colors: {
  custom: {
    50: '#6c4954',
    500: '#310418',
    950: '#000000',
  },
}
SCSS
$custom: #310418;
$custom-light: #6c4954;
$custom-dark: #000000;
JSON
{
  "hex": "#310418",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 24
  },
  "hsl": {
    "h": 333.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.2104,
    "c": 0.0753,
    "h": 358.3
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#310418
secondary
#1D734D
accent
#FB9F2D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310418

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

Preview Lab → · Contrast checker → · Palette generator →

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