#310C26#310C26

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

Color values

HEX#310C26
RGBrgb(49, 12, 38)
HSLhsl(318, 61%, 12%)
HSVhsv(318, 76%, 19%)
CMYKcmyk(0%, 75.5%, 22.4%, 80.8%)
CIE-LABlab(9.45, 22.28, -8.40)
CIE-LCHlch(9.45, 23.81, 339.34°)
OKLaboklab(22.86% 0.0664 -0.0225)
OKLCHoklch(22.86% 0.07 341.2)
XYZxyz(1.7480, 1.0560, 1.9451)
Luminance0.0106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C26 #0C3117
analogous
#2A0C31 #310C26 #310C14
triadic
#310C26 #26310C #0C2631
tetradic
#310C26 #312A0C #0C3117 #0C1431
square
#310C26 #312A0C #0C3117 #0C1431
split-complementary
#310C26 #14310C #0C312A
monochromatic
#190613 #190613 #310C26 #62184C #932472

Accessibility & contrast

On white

17.34
#310C26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C26
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C26#FFFFFF#000000##FFFFFF
##310C261.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1727
Deuteranopia (green-blind)
#1A1D25
Tritanopia (blue-blind)
#340D17
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310c26;
/* rgb */ color: rgb(49, 12, 38);
/* oklch */ color: oklch(22.9% 0.070 341.2);
Tailwind
colors: {
  custom: {
    50: '#6b4e60',
    500: '#310c26',
    950: '#000000',
  },
}
SCSS
$custom: #310c26;
$custom-light: #6b4e60;
$custom-dark: #000000;
JSON
{
  "hex": "#310c26",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 38
  },
  "hsl": {
    "h": 317.838,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22859,
    "c": 0.0701,
    "h": 341.2
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#310C26
secondary
#2C6D3F
accent
#E47444
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310C26

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

Preview Lab → · Contrast checker → · Palette generator →

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