#310D23#310D23

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

Color values

HEX#310D23
RGBrgb(49, 13, 35)
HSLhsl(323, 58%, 12%)
HSVhsv(323, 73%, 19%)
CMYKcmyk(0%, 73.5%, 28.6%, 80.8%)
CIE-LABlab(9.50, 21.20, -6.07)
CIE-LCHlch(9.50, 22.05, 344.03°)
OKLaboklab(22.85% 0.0639 -0.016)
OKLCHoklch(22.85% 0.066 345.9)
XYZxyz(1.7140, 1.0623, 1.7046)
Luminance0.0106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D23 #0D311B
analogous
#2D0D31 #310D23 #310D11
triadic
#310D23 #23310D #0D2331
tetradic
#310D23 #312D0D #0D311B #0D1131
square
#310D23 #312D0D #0D311B #0D1131
split-complementary
#310D23 #11310D #0D312D
monochromatic
#180611 #180611 #310D23 #611A46 #922768

Accessibility & contrast

On white

17.32
#310D23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D23
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D23#FFFFFF#000000##FFFFFF
##310D231.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310d23;
/* rgb */ color: rgb(49, 13, 35);
/* oklch */ color: oklch(22.8% 0.066 345.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e5d',
    500: '#310d23',
    950: '#000000',
  },
}
SCSS
$custom: #310d23;
$custom-light: #6b4e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#310d23",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 35
  },
  "hsl": {
    "h": 323.333,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22847,
    "c": 0.06584,
    "h": 345.9
  },
  "luminance": 0.01062
}

Semantic roles & 50–950 ramp

primary
#310D23
secondary
#2E6C46
accent
#E18347
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310D23

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

Preview Lab → · Contrast checker → · Palette generator →

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