#310B20#310B20

#310B20 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.4% C 0.067 H 349.7°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#310B20
RGBrgb(49, 11, 32)
HSLhsl(327, 63%, 12%)
HSVhsv(327, 78%, 19%)
CMYKcmyk(0%, 77.6%, 34.7%, 80.8%)
CIE-LABlab(8.96, 21.78, -4.60)
CIE-LCHlch(8.96, 22.26, 348.07°)
OKLaboklab(22.41% 0.0662 -0.012)
OKLCHoklch(22.41% 0.067 349.7)
XYZxyz(1.6471, 0.9968, 1.4719)
Luminance0.0100 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B20 #0B311C
analogous
#2F0B31 #310B20 #310B0D
triadic
#310B20 #20310B #0B2031
tetradic
#310B20 #312F0B #0B311C #0B0D31
square
#310B20 #312F0B #0B311C #0B0D31
split-complementary
#310B20 #0D310B #0B312F
monochromatic
#190610 #190610 #310B20 #631641 #952161

Accessibility & contrast

On white

17.51
#310B20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B20
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B20#FFFFFF#000000##FFFFFF
##310B201.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101521
Deuteranopia (green-blind)
#1B1C1F
Tritanopia (blue-blind)
#350914
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310b20;
/* rgb */ color: rgb(49, 11, 32);
/* oklch */ color: oklch(22.4% 0.067 349.7);
Tailwind
colors: {
  custom: {
    50: '#6b4d5b',
    500: '#310b20',
    950: '#000000',
  },
}
SCSS
$custom: #310b20;
$custom-light: #6b4d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#310b20",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 32
  },
  "hsl": {
    "h": 326.842,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22406,
    "c": 0.06727,
    "h": 349.7
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#310B20
secondary
#2A6E48
accent
#E68B41
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310B20

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

Preview Lab → · Contrast checker → · Palette generator →

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