#310315#310315

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

Color values

HEX#310315
RGBrgb(49, 3, 21)
HSLhsl(337, 88%, 10%)
HSVhsv(337, 94%, 19%)
CMYKcmyk(0%, 93.9%, 57.1%, 80.8%)
CIE-LABlab(6.98, 24.53, 0.83)
CIE-LCHlch(6.98, 24.54, 1.94°)
OKLaboklab(20.76% 0.076 0.0027)
OKLCHoklch(20.76% 0.076 2)
XYZxyz(1.4347, 0.7724, 0.7829)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310315 #03311F
analogous
#31032C #310315 #310803
triadic
#310315 #153103 #031531
tetradic
#310315 #2C3103 #03311F #080331
square
#310315 #2C3103 #03311F #080331
split-complementary
#310315 #033108 #032C31
monochromatic
#1D020C #1D020C #310315 #6B072E #A40A46

Accessibility & contrast

On white

18.19
#310315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310315
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310315#FFFFFF#000000##FFFFFF
##3103151.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0F15
Deuteranopia (green-blind)
#1A1914
Tritanopia (blue-blind)
#36000A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310315;
/* rgb */ color: rgb(49, 3, 21);
/* oklch */ color: oklch(20.8% 0.076 2.0);
Tailwind
colors: {
  custom: {
    50: '#6c4852',
    500: '#310315',
    950: '#000000',
  },
}
SCSS
$custom: #310315;
$custom-light: #6c4852;
$custom-dark: #000000;
JSON
{
  "hex": "#310315",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 21
  },
  "hsl": {
    "h": 336.522,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20763,
    "c": 0.07602,
    "h": 2
  },
  "luminance": 0.00772
}

Semantic roles & 50–950 ramp

primary
#310315
secondary
#1B7452
accent
#FFAB29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310315

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

Preview Lab → · Contrast checker → · Palette generator →

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