#310C27#310C27

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

Color values

HEX#310C27
RGBrgb(49, 12, 39)
HSLhsl(316, 61%, 12%)
HSVhsv(316, 76%, 19%)
CMYKcmyk(0%, 75.5%, 20.4%, 80.8%)
CIE-LABlab(9.50, 22.46, -9.07)
CIE-LCHlch(9.50, 24.23, 338.01°)
OKLaboklab(22.91% 0.0666 -0.0244)
OKLCHoklch(22.91% 0.071 339.9)
XYZxyz(1.7643, 1.0626, 2.0312)
Luminance0.0106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C27 #0C3116
analogous
#290C31 #310C27 #310C15
triadic
#310C27 #27310C #0C2731
tetradic
#310C27 #31290C #0C3116 #0C1531
square
#310C27 #31290C #0C3116 #0C1531
split-complementary
#310C27 #15310C #0C3129
monochromatic
#190614 #190614 #310C27 #62184E #932475

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310C27#FFFFFF#000000##FFFFFF
##310C271.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)
#0E1728
Deuteranopia (green-blind)
#191D26
Tritanopia (blue-blind)
#340D18
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310c27;
/* rgb */ color: rgb(49, 12, 39);
/* oklch */ color: oklch(22.9% 0.071 339.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e61',
    500: '#310c27',
    950: '#000000',
  },
}
SCSS
$custom: #310c27;
$custom-light: #6b4e61;
$custom-dark: #000000;
JSON
{
  "hex": "#310c27",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 39
  },
  "hsl": {
    "h": 316.216,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22914,
    "c": 0.07096,
    "h": 339.9
  },
  "luminance": 0.01062
}

Semantic roles & 50–950 ramp

primary
#310C27
secondary
#2C6D3D
accent
#E46F44
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #310C27

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

Preview Lab → · Contrast checker → · Palette generator →

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