#310317#310317

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

Color values

HEX#310317
RGBrgb(49, 3, 23)
HSLhsl(334, 88%, 10%)
HSVhsv(334, 94%, 19%)
CMYKcmyk(0%, 93.9%, 53.1%, 80.8%)
CIE-LABlab(7.05, 24.78, -0.50)
CIE-LCHlch(7.05, 24.78, 358.84°)
OKLaboklab(20.84% 0.0768 -0.0011)
OKLCHoklch(20.84% 0.077 359.2)
XYZxyz(1.4540, 0.7802, 0.8845)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310317 #03311D
analogous
#31032E #310317 #310603
triadic
#310317 #173103 #031731
tetradic
#310317 #2E3103 #03311D #060331
square
#310317 #2E3103 #03311D #060331
split-complementary
#310317 #033106 #032E31
monochromatic
#1D020E #1D020E #310317 #6B0732 #A40A4D

Accessibility & contrast

On white

18.17
#310317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310317
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310317#FFFFFF#000000##FFFFFF
##3103171.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310317;
/* rgb */ color: rgb(49, 3, 23);
/* oklch */ color: oklch(20.8% 0.077 359.2);
Tailwind
colors: {
  custom: {
    50: '#6c4853',
    500: '#310317',
    950: '#000000',
  },
}
SCSS
$custom: #310317;
$custom-light: #6c4853;
$custom-dark: #000000;
JSON
{
  "hex": "#310317",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 23
  },
  "hsl": {
    "h": 333.913,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20844,
    "c": 0.07681,
    "h": 359.2
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#310317
secondary
#1B744E
accent
#FFA229
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310317

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

Preview Lab → · Contrast checker → · Palette generator →

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