#310C28#310C28

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

Color values

HEX#310C28
RGBrgb(49, 12, 40)
HSLhsl(315, 61%, 12%)
HSVhsv(315, 76%, 19%)
CMYKcmyk(0%, 75.5%, 18.4%, 80.8%)
CIE-LABlab(9.56, 22.65, -9.74)
CIE-LCHlch(9.56, 24.66, 336.73°)
OKLaboklab(22.97% 0.0669 -0.0263)
OKLCHoklch(22.97% 0.072 338.5)
XYZxyz(1.7811, 1.0693, 2.1197)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C28 #0C3115
analogous
#280C31 #310C28 #310C16
triadic
#310C28 #28310C #0C2831
tetradic
#310C28 #31280C #0C3115 #0C1631
square
#310C28 #31280C #0C3115 #0C1631
split-complementary
#310C28 #16310C #0C3128
monochromatic
#190614 #190614 #310C28 #621850 #932478

Accessibility & contrast

On white

17.30
#310C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C28
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C28#FFFFFF#000000##FFFFFF
##310C281.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1729
Deuteranopia (green-blind)
#191D27
Tritanopia (blue-blind)
#340D18
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c28;
/* rgb */ color: rgb(49, 12, 40);
/* oklch */ color: oklch(23.0% 0.072 338.5);
Tailwind
colors: {
  custom: {
    50: '#6b4e62',
    500: '#310c28',
    950: '#000000',
  },
}
SCSS
$custom: #310c28;
$custom-light: #6b4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#310c28",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 314.595,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22971,
    "c": 0.07184,
    "h": 338.5
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#310C28
secondary
#2C6D3C
accent
#E46B44
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310C28

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

Preview Lab → · Contrast checker → · Palette generator →

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