#310517#310517

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

Color values

HEX#310517
RGBrgb(49, 5, 23)
HSLhsl(335, 81%, 11%)
HSVhsv(335, 90%, 19%)
CMYKcmyk(0%, 89.8%, 53.1%, 80.8%)
CIE-LABlab(7.44, 23.70, 0.07)
CIE-LCHlch(7.44, 23.70, 0.17°)
OKLaboklab(21.15% 0.073 0.0005)
OKLCHoklch(21.15% 0.073 0.4)
XYZxyz(1.4757, 0.8236, 0.8917)
Luminance0.0082 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310517 #05311F
analogous
#31052D #310517 #310905
triadic
#310517 #173105 #051731
tetradic
#310517 #2D3105 #05311F #090531
square
#310517 #2D3105 #05311F #090531
split-complementary
#310517 #053109 #052D31
monochromatic
#1C030D #1C030D #310517 #690B31 #A0104B

Accessibility & contrast

On white

18.03
#310517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310517
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310517#FFFFFF#000000##FFFFFF
##3105171.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1117
Deuteranopia (green-blind)
#1A1A16
Tritanopia (blue-blind)
#36010C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310517;
/* rgb */ color: rgb(49, 5, 23);
/* oklch */ color: oklch(21.2% 0.073 0.4);
Tailwind
colors: {
  custom: {
    50: '#6c4953',
    500: '#310517',
    950: '#000000',
  },
}
SCSS
$custom: #310517;
$custom-light: #6c4953;
$custom-dark: #000000;
JSON
{
  "hex": "#310517",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 23
  },
  "hsl": {
    "h": 335.455,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21151,
    "c": 0.07297,
    "h": 0.4
  },
  "luminance": 0.00823
}

Semantic roles & 50–950 ramp

primary
#310517
secondary
#1F7250
accent
#F8A630
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310517

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

Preview Lab → · Contrast checker → · Palette generator →

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