#310D21#310D21

#310D21 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 22.7% C 0.064 H 349.0°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#310D21
RGBrgb(49, 13, 33)
HSLhsl(327, 58%, 12%)
HSVhsv(327, 73%, 19%)
CMYKcmyk(0%, 73.5%, 32.7%, 80.8%)
CIE-LABlab(9.41, 20.86, -4.69)
CIE-LCHlch(9.41, 21.38, 347.32°)
OKLaboklab(22.75% 0.0632 -0.0123)
OKLCHoklch(22.75% 0.064 349)
XYZxyz(1.6851, 1.0508, 1.5526)
Luminance0.0105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D21 #0D311D
analogous
#2F0D31 #310D21 #310D0F
triadic
#310D21 #21310D #0D2131
tetradic
#310D21 #312F0D #0D311D #0D0F31
square
#310D21 #312F0D #0D311D #0D0F31
split-complementary
#310D21 #0F310D #0D312F
monochromatic
#180610 #180610 #310D21 #611A42 #922762

Accessibility & contrast

On white

17.35
#310D21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310D21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D21
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D21#FFFFFF#000000##FFFFFF
##310D211.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111622
Deuteranopia (green-blind)
#1B1D20
Tritanopia (blue-blind)
#350C15
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310d21;
/* rgb */ color: rgb(49, 13, 33);
/* oklch */ color: oklch(22.7% 0.064 349.0);
Tailwind
colors: {
  custom: {
    50: '#6b4e5c',
    500: '#310d21',
    950: '#000000',
  },
}
SCSS
$custom: #310d21;
$custom-light: #6b4e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#310d21",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 33
  },
  "hsl": {
    "h": 326.667,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22748,
    "c": 0.06437,
    "h": 349
  },
  "luminance": 0.01051
}

Semantic roles & 50–950 ramp

primary
#310D21
secondary
#2E6C49
accent
#E18B47
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310D21

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

Preview Lab → · Contrast checker → · Palette generator →

#310D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva