#310417#310417

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

Color values

HEX#310417
RGBrgb(49, 4, 23)
HSLhsl(335, 85%, 10%)
HSVhsv(335, 92%, 19%)
CMYKcmyk(0%, 91.8%, 53.1%, 80.8%)
CIE-LABlab(7.24, 24.24, -0.21)
CIE-LCHlch(7.24, 24.24, 359.49°)
OKLaboklab(21% 0.0749 -0.0003)
OKLCHoklch(21% 0.075 359.8)
XYZxyz(1.4648, 0.8019, 0.8881)
Luminance0.0080 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310417 #04311E
analogous
#31042D #310417 #310804
triadic
#310417 #173104 #041731
tetradic
#310417 #2D3104 #04311E #080431
square
#310417 #2D3104 #04311E #080431
split-complementary
#310417 #043108 #042D31
monochromatic
#1C020D #1C020D #310417 #6A0932 #A20D4C

Accessibility & contrast

On white

18.10
#310417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310417
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310417#FFFFFF#000000##FFFFFF
##3104171.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310417;
/* rgb */ color: rgb(49, 4, 23);
/* oklch */ color: oklch(21.0% 0.075 359.8);
Tailwind
colors: {
  custom: {
    50: '#6c4953',
    500: '#310417',
    950: '#000000',
  },
}
SCSS
$custom: #310417;
$custom-light: #6c4953;
$custom-dark: #000000;
JSON
{
  "hex": "#310417",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 23
  },
  "hsl": {
    "h": 334.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20998,
    "c": 0.07486,
    "h": 359.8
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#310417
secondary
#1D734F
accent
#FBA42D
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310417

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

Preview Lab → · Contrast checker → · Palette generator →

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