#310D22#310D22

#310D22 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 22.8% C 0.065 H 347.4°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#310D22
RGBrgb(49, 13, 34)
HSLhsl(325, 58%, 12%)
HSVhsv(325, 73%, 19%)
CMYKcmyk(0%, 73.5%, 30.6%, 80.8%)
CIE-LABlab(9.45, 21.03, -5.38)
CIE-LCHlch(9.45, 21.71, 345.65°)
OKLaboklab(22.8% 0.0635 -0.0142)
OKLCHoklch(22.8% 0.065 347.4)
XYZxyz(1.6993, 1.0565, 1.6275)
Luminance0.0106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D22 #0D311C
analogous
#2E0D31 #310D22 #310D10
triadic
#310D22 #22310D #0D2231
tetradic
#310D22 #312E0D #0D311C #0D1031
square
#310D22 #312E0D #0D311C #0D1031
split-complementary
#310D22 #10310D #0D312E
monochromatic
#180611 #180611 #310D22 #611A44 #922765

Accessibility & contrast

On white

17.34
#310D22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D22
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D22#FFFFFF#000000##FFFFFF
##310D221.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111623
Deuteranopia (green-blind)
#1B1D21
Tritanopia (blue-blind)
#350C16
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310d22;
/* rgb */ color: rgb(49, 13, 34);
/* oklch */ color: oklch(22.8% 0.065 347.4);
Tailwind
colors: {
  custom: {
    50: '#6b4e5d',
    500: '#310d22',
    950: '#000000',
  },
}
SCSS
$custom: #310d22;
$custom-light: #6b4e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#310d22",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 34
  },
  "hsl": {
    "h": 325,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22797,
    "c": 0.06509,
    "h": 347.4
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#310D22
secondary
#2E6C48
accent
#E18747
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310D22

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

Preview Lab → · Contrast checker → · Palette generator →

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