#310C23#310C23

#310C23 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.7% C 0.068 H 345.6°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#310C23
RGBrgb(49, 12, 35)
HSLhsl(323, 61%, 12%)
HSVhsv(323, 76%, 19%)
CMYKcmyk(0%, 75.5%, 28.6%, 80.8%)
CIE-LABlab(9.30, 21.75, -6.37)
CIE-LCHlch(9.30, 22.66, 343.67°)
OKLaboklab(22.7% 0.0655 -0.0169)
OKLCHoklch(22.7% 0.068 345.6)
XYZxyz(1.7015, 1.0374, 1.7004)
Luminance0.0104 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C23 #0C311A
analogous
#2D0C31 #310C23 #310C11
triadic
#310C23 #23310C #0C2331
tetradic
#310C23 #312D0C #0C311A #0C1131
square
#310C23 #312D0C #0C311A #0C1131
split-complementary
#310C23 #11310C #0C312D
monochromatic
#190612 #190612 #310C23 #621846 #932469

Accessibility & contrast

On white

17.39
#310C23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C23
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C23#FFFFFF#000000##FFFFFF
##310C231.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101624
Deuteranopia (green-blind)
#1A1C22
Tritanopia (blue-blind)
#350B16
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310c23;
/* rgb */ color: rgb(49, 12, 35);
/* oklch */ color: oklch(22.7% 0.068 345.6);
Tailwind
colors: {
  custom: {
    50: '#6b4d5d',
    500: '#310c23',
    950: '#000000',
  },
}
SCSS
$custom: #310c23;
$custom-light: #6b4d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#310c23",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 35
  },
  "hsl": {
    "h": 322.703,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22699,
    "c": 0.06767,
    "h": 345.6
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#310C23
secondary
#2C6D45
accent
#E48044
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310C23

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

Preview Lab → · Contrast checker → · Palette generator →

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