#310518#310518

#310518 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.2% C 0.073 H 358.9°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#310518
RGBrgb(49, 5, 24)
HSLhsl(334, 81%, 11%)
HSVhsv(334, 90%, 19%)
CMYKcmyk(0%, 89.8%, 51%, 80.8%)
CIE-LABlab(7.48, 23.83, -0.63)
CIE-LCHlch(7.48, 23.84, 358.48°)
OKLaboklab(21.19% 0.0734 -0.0014)
OKLCHoklch(21.19% 0.073 358.9)
XYZxyz(1.4859, 0.8277, 0.9455)
Luminance0.0083 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310518 #05311E
analogous
#31052E #310518 #310805
triadic
#310518 #183105 #051831
tetradic
#310518 #2E3105 #05311E #080531
square
#310518 #2E3105 #05311E #080531
split-complementary
#310518 #053108 #052E31
monochromatic
#1C030E #1C030E #310518 #690B33 #A0104E

Accessibility & contrast

On white

18.02
#310518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310518
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310518#FFFFFF#000000##FFFFFF
##3105181.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1118
Deuteranopia (green-blind)
#1A1A17
Tritanopia (blue-blind)
#36010D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310518;
/* rgb */ color: rgb(49, 5, 24);
/* oklch */ color: oklch(21.2% 0.073 358.9);
Tailwind
colors: {
  custom: {
    50: '#6c4954',
    500: '#310518',
    950: '#000000',
  },
}
SCSS
$custom: #310518;
$custom-light: #6c4954;
$custom-dark: #000000;
JSON
{
  "hex": "#310518",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 24
  },
  "hsl": {
    "h": 334.091,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21192,
    "c": 0.0734,
    "h": 358.9
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#310518
secondary
#1F724F
accent
#F8A230
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310518

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

Preview Lab → · Contrast checker → · Palette generator →

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