#310E28#310E28

#310E28 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.3% C 0.068 H 338.9°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#310E28
RGBrgb(49, 14, 40)
HSLhsl(315, 56%, 12%)
HSVhsv(315, 71%, 19%)
CMYKcmyk(0%, 71.4%, 18.4%, 80.8%)
CIE-LABlab(9.96, 21.56, -9.12)
CIE-LCHlch(9.96, 23.41, 337.07°)
OKLaboklab(23.27% 0.0636 -0.0246)
OKLCHoklch(23.27% 0.068 338.9)
XYZxyz(1.8067, 1.1204, 2.1282)
Luminance0.0112 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E28 #0E3117
analogous
#290E31 #310E28 #310E16
triadic
#310E28 #28310E #0E2831
tetradic
#310E28 #31290E #0E3117 #0E1631
square
#310E28 #31290E #0E3117 #0E1631
split-complementary
#310E28 #16310E #0E3129
monochromatic
#180713 #180713 #310E28 #611C4F #902976

Accessibility & contrast

On white

17.16
#310E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310E28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E28
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E28#FFFFFF#000000##FFFFFF
##310E281.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1829
Deuteranopia (green-blind)
#1A1D27
Tritanopia (blue-blind)
#340F19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310e28;
/* rgb */ color: rgb(49, 14, 40);
/* oklch */ color: oklch(23.3% 0.068 338.9);
Tailwind
colors: {
  custom: {
    50: '#6b4f62',
    500: '#310e28',
    950: '#000000',
  },
}
SCSS
$custom: #310e28;
$custom-light: #6b4f62;
$custom-dark: #000000;
JSON
{
  "hex": "#310e28",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 40
  },
  "hsl": {
    "h": 315.429,
    "s": 55.556,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23265,
    "c": 0.06817,
    "h": 338.9
  },
  "luminance": 0.0112
}

Semantic roles & 50–950 ramp

primary
#310E28
secondary
#2F6C3F
accent
#DF6F49
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #310E28

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

Preview Lab → · Contrast checker → · Palette generator →

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