#310F28#310F28

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

Color values

HEX#310F28
RGBrgb(49, 15, 40)
HSLhsl(316, 53%, 13%)
HSVhsv(316, 69%, 19%)
CMYKcmyk(0%, 69.4%, 18.4%, 80.8%)
CIE-LABlab(10.17, 20.99, -8.80)
CIE-LCHlch(10.17, 22.75, 337.26°)
OKLaboklab(23.42% 0.0619 -0.0237)
OKLCHoklch(23.42% 0.066 339.1)
XYZxyz(1.8205, 1.1480, 2.1328)
Luminance0.0115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F28 #0F3118
analogous
#290F31 #310F28 #310F17
triadic
#310F28 #28310F #0F2831
tetradic
#310F28 #31290F #0F3118 #0F1731
square
#310F28 #31290F #0F3118 #0F1731
split-complementary
#310F28 #17310F #0F3129
monochromatic
#170713 #170713 #310F28 #601D4E #8F2C75

Accessibility & contrast

On white

17.08
#310F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F28
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F28#FFFFFF#000000##FFFFFF
##310F281.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101829
Deuteranopia (green-blind)
#1A1E27
Tritanopia (blue-blind)
#341019
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310f28;
/* rgb */ color: rgb(49, 15, 40);
/* oklch */ color: oklch(23.4% 0.066 339.1);
Tailwind
colors: {
  custom: {
    50: '#6a4f62',
    500: '#310f28',
    950: '#000000',
  },
}
SCSS
$custom: #310f28;
$custom-light: #6a4f62;
$custom-dark: #000000;
JSON
{
  "hex": "#310f28",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 315.882,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23421,
    "c": 0.06626,
    "h": 339.1
  },
  "luminance": 0.01148
}

Semantic roles & 50–950 ramp

primary
#310F28
secondary
#316B40
accent
#DD724B
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #310F28

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

Preview Lab → · Contrast checker → · Palette generator →

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