#310318#310318

#310318 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.9% C 0.077 H 357.8°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#310318
RGBrgb(49, 3, 24)
HSLhsl(333, 88%, 10%)
HSVhsv(333, 94%, 19%)
CMYKcmyk(0%, 93.9%, 51%, 80.8%)
CIE-LABlab(7.08, 24.91, -1.21)
CIE-LCHlch(7.08, 24.94, 357.23°)
OKLaboklab(20.89% 0.0772 -0.003)
OKLCHoklch(20.89% 0.077 357.8)
XYZxyz(1.4642, 0.7842, 0.9382)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310318 #03311C
analogous
#31032F #310318 #310503
triadic
#310318 #183103 #031831
tetradic
#310318 #2F3103 #03311C #050331
square
#310318 #2F3103 #03311C #050331
split-complementary
#310318 #033105 #032F31
monochromatic
#1D020E #1D020E #310318 #6B0734 #A40A50

Accessibility & contrast

On white

18.15
#310318 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310318 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310318
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310318#FFFFFF#000000##FFFFFF
##3103181.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1019
Deuteranopia (green-blind)
#191917
Tritanopia (blue-blind)
#36000C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310318;
/* rgb */ color: rgb(49, 3, 24);
/* oklch */ color: oklch(20.9% 0.077 357.8);
Tailwind
colors: {
  custom: {
    50: '#6c4854',
    500: '#310318',
    950: '#000000',
  },
}
SCSS
$custom: #310318;
$custom-light: #6c4854;
$custom-dark: #000000;
JSON
{
  "hex": "#310318",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 24
  },
  "hsl": {
    "h": 332.609,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20886,
    "c": 0.07726,
    "h": 357.8
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#310318
secondary
#1B744C
accent
#FF9D29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #310318

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

Preview Lab → · Contrast checker → · Palette generator →

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