#310717#310717

#310717 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.4% C 0.069 H 1.6°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#310717
RGBrgb(49, 7, 23)
HSLhsl(337, 75%, 11%)
HSVhsv(337, 86%, 19%)
CMYKcmyk(0%, 85.7%, 53.1%, 80.8%)
CIE-LABlab(7.83, 22.62, 0.65)
CIE-LCHlch(7.83, 22.63, 1.63°)
OKLaboklab(21.45% 0.0693 0.002)
OKLCHoklch(21.45% 0.069 1.6)
XYZxyz(1.4974, 0.8670, 0.8989)
Luminance0.0087 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310717 #073121
analogous
#31072C #310717 #310C07
triadic
#310717 #173107 #071731
tetradic
#310717 #2C3107 #073121 #0C0731
square
#310717 #2C3107 #073121 #0C0731
split-complementary
#310717 #07310C #072C31
monochromatic
#1B040D #1B040D #310717 #670F30 #9C1649

Accessibility & contrast

On white

17.90
#310717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310717
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310717#FFFFFF#000000##FFFFFF
##3107171.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101217
Deuteranopia (green-blind)
#1B1A16
Tritanopia (blue-blind)
#36030E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310717;
/* rgb */ color: rgb(49, 7, 23);
/* oklch */ color: oklch(21.4% 0.069 1.6);
Tailwind
colors: {
  custom: {
    50: '#6c4a53',
    500: '#310717',
    950: '#000000',
  },
}
SCSS
$custom: #310717;
$custom-light: #6c4a53;
$custom-dark: #000000;
JSON
{
  "hex": "#310717",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 23
  },
  "hsl": {
    "h": 337.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21448,
    "c": 0.06937,
    "h": 1.6
  },
  "luminance": 0.00867
}

Semantic roles & 50–950 ramp

primary
#310717
secondary
#237153
accent
#F2AA36
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310717

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

Preview Lab → · Contrast checker → · Palette generator →

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