#310B23#310B23

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

Color values

HEX#310B23
RGBrgb(49, 11, 35)
HSLhsl(322, 63%, 12%)
HSVhsv(322, 78%, 19%)
CMYKcmyk(0%, 77.6%, 28.6%, 80.8%)
CIE-LABlab(9.11, 22.28, -6.67)
CIE-LCHlch(9.11, 23.26, 343.34°)
OKLaboklab(22.56% 0.0672 -0.0177)
OKLCHoklch(22.56% 0.069 345.2)
XYZxyz(1.6897, 1.0138, 1.6965)
Luminance0.0101 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B23 #0B3119
analogous
#2C0B31 #310B23 #310B10
triadic
#310B23 #23310B #0B2331
tetradic
#310B23 #312C0B #0B3119 #0B1031
square
#310B23 #312C0B #0B3119 #0B1031
split-complementary
#310B23 #10310B #0B312C
monochromatic
#190612 #190612 #310B23 #631647 #95216A

Accessibility & contrast

On white

17.46
#310B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B23
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B23#FFFFFF#000000##FFFFFF
##310B231.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1624
Deuteranopia (green-blind)
#1A1C22
Tritanopia (blue-blind)
#350A15
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310b23;
/* rgb */ color: rgb(49, 11, 35);
/* oklch */ color: oklch(22.6% 0.069 345.2);
Tailwind
colors: {
  custom: {
    50: '#6b4d5d',
    500: '#310b23',
    950: '#000000',
  },
}
SCSS
$custom: #310b23;
$custom-light: #6b4d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#310b23",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 35
  },
  "hsl": {
    "h": 322.105,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22557,
    "c": 0.06944,
    "h": 345.2
  },
  "luminance": 0.01014
}

Semantic roles & 50–950 ramp

primary
#310B23
secondary
#2A6E43
accent
#E67E41
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310B23

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

Preview Lab → · Contrast checker → · Palette generator →

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