#310C29#310C29

#310C29 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.0% C 0.073 H 337.2°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#310C29
RGBrgb(49, 12, 41)
HSLhsl(313, 61%, 12%)
HSVhsv(313, 76%, 19%)
CMYKcmyk(0%, 75.5%, 16.3%, 80.8%)
CIE-LABlab(9.61, 22.84, -10.40)
CIE-LCHlch(9.61, 25.10, 335.52°)
OKLaboklab(23.03% 0.0671 -0.0282)
OKLCHoklch(23.03% 0.073 337.2)
XYZxyz(1.7984, 1.0762, 2.2104)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C29 #0C3114
analogous
#270C31 #310C29 #310C17
triadic
#310C29 #29310C #0C2931
tetradic
#310C29 #31270C #0C3114 #0C1731
square
#310C29 #31270C #0C3114 #0C1731
split-complementary
#310C29 #17310C #0C3127
monochromatic
#190615 #190615 #310C29 #621852 #93247B

Accessibility & contrast

On white

17.28
#310C29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C29
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C29#FFFFFF#000000##FFFFFF
##310C291.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D172A
Deuteranopia (green-blind)
#181D28
Tritanopia (blue-blind)
#340E19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c29;
/* rgb */ color: rgb(49, 12, 41);
/* oklch */ color: oklch(23.0% 0.073 337.2);
Tailwind
colors: {
  custom: {
    50: '#6b4e62',
    500: '#310c29',
    950: '#000000',
  },
}
SCSS
$custom: #310c29;
$custom-light: #6b4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#310c29",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 41
  },
  "hsl": {
    "h": 312.973,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23029,
    "c": 0.07275,
    "h": 337.2
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#310C29
secondary
#2C6D3A
accent
#E46744
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310C29

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

Preview Lab → · Contrast checker → · Palette generator →

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