#310217#310217

#310217 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.7% C 0.079 H 358.6°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#310217
RGBrgb(49, 2, 23)
HSLhsl(333, 92%, 10%)
HSVhsv(333, 96%, 19%)
CMYKcmyk(0%, 95.9%, 53.1%, 80.8%)
CIE-LABlab(6.85, 25.32, -0.79)
CIE-LCHlch(6.85, 25.33, 358.22°)
OKLaboklab(20.69% 0.0788 -0.0019)
OKLCHoklch(20.69% 0.079 358.6)
XYZxyz(1.4431, 0.7584, 0.8808)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310217 #02311C
analogous
#31022F #310217 #310402
triadic
#310217 #173102 #021731
tetradic
#310217 #2F3102 #02311C #040231
square
#310217 #2F3102 #02311C #040231
split-complementary
#310217 #023104 #022F31
monochromatic
#1D010E #1D010E #310217 #6C0433 #A7074E

Accessibility & contrast

On white

18.24
#310217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310217
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310217#FFFFFF#000000##FFFFFF
##3102171.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0F18
Deuteranopia (green-blind)
#191816
Tritanopia (blue-blind)
#36000A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310217;
/* rgb */ color: rgb(49, 2, 23);
/* oklch */ color: oklch(20.7% 0.079 358.6);
Tailwind
colors: {
  custom: {
    50: '#6c4753',
    500: '#310217',
    950: '#000000',
  },
}
SCSS
$custom: #310217;
$custom-light: #6c4753;
$custom-dark: #000000;
JSON
{
  "hex": "#310217",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 23
  },
  "hsl": {
    "h": 333.191,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20687,
    "c": 0.07882,
    "h": 358.6
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#310217
secondary
#19754C
accent
#FF9F29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310217

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

Preview Lab → · Contrast checker → · Palette generator →

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