#310117#310117

#310117 is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 20.5% C 0.081 H 358.0°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#310117
RGBrgb(49, 1, 23)
HSLhsl(333, 96%, 10%)
HSVhsv(333, 98%, 19%)
CMYKcmyk(0%, 98%, 53.1%, 80.8%)
CIE-LABlab(6.65, 25.85, -1.07)
CIE-LCHlch(6.65, 25.87, 357.62°)
OKLaboklab(20.53% 0.0809 -0.0028)
OKLCHoklch(20.53% 0.081 358)
XYZxyz(1.4323, 0.7367, 0.8772)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310117 #01311B
analogous
#31012F #310117 #310301
triadic
#310117 #173101 #011731
tetradic
#310117 #2F3101 #01311B #030131
square
#310117 #2F3101 #01311B #030131
split-complementary
#310117 #013103 #012F31
monochromatic
#1E010E #1E010E #310117 #6D0233 #A9034F

Accessibility & contrast

On white

18.30
#310117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310117
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310117#FFFFFF#000000##FFFFFF
##3101171.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310117;
/* rgb */ color: rgb(49, 1, 23);
/* oklch */ color: oklch(20.5% 0.081 358.0);
Tailwind
colors: {
  custom: {
    50: '#6c4753',
    500: '#310117',
    950: '#000000',
  },
}
SCSS
$custom: #310117;
$custom-light: #6c4753;
$custom-dark: #000000;
JSON
{
  "hex": "#310117",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 23
  },
  "hsl": {
    "h": 332.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20527,
    "c": 0.0809,
    "h": 358
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#310117
secondary
#17774B
accent
#FF9D29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310117

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

Preview Lab → · Contrast checker → · Palette generator →

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