#310118#310118

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

Color values

HEX#310118
RGBrgb(49, 1, 24)
HSLhsl(331, 96%, 10%)
HSVhsv(331, 98%, 19%)
CMYKcmyk(0%, 98%, 51%, 80.8%)
CIE-LABlab(6.69, 25.98, -1.78)
CIE-LCHlch(6.69, 26.05, 356.08°)
OKLaboklab(20.57% 0.0812 -0.0047)
OKLCHoklch(20.57% 0.081 356.7)
XYZxyz(1.4425, 0.7408, 0.9310)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310118 #01311A
analogous
#310130 #310118 #310201
triadic
#310118 #183101 #011831
tetradic
#310118 #303101 #01311A #020131
square
#310118 #303101 #01311A #020131
split-complementary
#310118 #013102 #013031
monochromatic
#1E010F #1E010F #310118 #6D0235 #A90353

Accessibility & contrast

On white

18.29
#310118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310118
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310118#FFFFFF#000000##FFFFFF
##3101181.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310118;
/* rgb */ color: rgb(49, 1, 24);
/* oklch */ color: oklch(20.6% 0.081 356.7);
Tailwind
colors: {
  custom: {
    50: '#6c4754',
    500: '#310118',
    950: '#000000',
  },
}
SCSS
$custom: #310118;
$custom-light: #6c4754;
$custom-dark: #000000;
JSON
{
  "hex": "#310118",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 24
  },
  "hsl": {
    "h": 331.25,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20571,
    "c": 0.08137,
    "h": 356.7
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#310118
secondary
#177749
accent
#FF9829
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310118

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

Preview Lab → · Contrast checker → · Palette generator →

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