#310C20#310C20

#310C20 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.6% C 0.066 H 350.1°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#310C20
RGBrgb(49, 12, 32)
HSLhsl(328, 61%, 12%)
HSVhsv(328, 76%, 19%)
CMYKcmyk(0%, 75.5%, 34.7%, 80.8%)
CIE-LABlab(9.16, 21.25, -4.31)
CIE-LCHlch(9.16, 21.68, 348.54°)
OKLaboklab(22.55% 0.0645 -0.0112)
OKLCHoklch(22.55% 0.066 350.1)
XYZxyz(1.6589, 1.0204, 1.4758)
Luminance0.0102 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C20 #0C311D
analogous
#300C31 #310C20 #310C0D
triadic
#310C20 #20310C #0C2031
tetradic
#310C20 #31300C #0C311D #0C0D31
square
#310C20 #31300C #0C311D #0C0D31
split-complementary
#310C20 #0D310C #0C3130
monochromatic
#190610 #190610 #310C20 #621840 #932460

Accessibility & contrast

On white

17.44
#310C20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310C20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C20
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C20#FFFFFF#000000##FFFFFF
##310C201.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111621
Deuteranopia (green-blind)
#1B1C1F
Tritanopia (blue-blind)
#350A14
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310c20;
/* rgb */ color: rgb(49, 12, 32);
/* oklch */ color: oklch(22.6% 0.066 350.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d5b',
    500: '#310c20',
    950: '#000000',
  },
}
SCSS
$custom: #310c20;
$custom-light: #6b4d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#310c20",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 32
  },
  "hsl": {
    "h": 327.568,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.2255,
    "c": 0.06551,
    "h": 350.1
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#310C20
secondary
#2C6D4A
accent
#E48D44
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310C20

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

Preview Lab → · Contrast checker → · Palette generator →

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