#310A26#310A26

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

Color values

HEX#310A26
RGBrgb(49, 10, 38)
HSLhsl(317, 66%, 12%)
HSVhsv(317, 80%, 19%)
CMYKcmyk(0%, 79.6%, 22.4%, 80.8%)
CIE-LABlab(9.08, 23.31, -8.98)
CIE-LCHlch(9.08, 24.98, 338.93°)
OKLaboklab(22.59% 0.0695 -0.0241)
OKLCHoklch(22.59% 0.074 340.8)
XYZxyz(1.7251, 1.0102, 1.9375)
Luminance0.0101 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A26 #0A3115
analogous
#290A31 #310A26 #310A13
triadic
#310A26 #26310A #0A2631
tetradic
#310A26 #31290A #0A3115 #0A1331
square
#310A26 #31290A #0A3115 #0A1331
split-complementary
#310A26 #13310A #0A3129
monochromatic
#190514 #190514 #310A26 #64144D #971F75

Accessibility & contrast

On white

17.47
#310A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A26
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A26#FFFFFF#000000##FFFFFF
##310A261.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1627
Deuteranopia (green-blind)
#191C25
Tritanopia (blue-blind)
#340B16
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310a26;
/* rgb */ color: rgb(49, 10, 38);
/* oklch */ color: oklch(22.6% 0.074 340.8);
Tailwind
colors: {
  custom: {
    50: '#6b4c60',
    500: '#310a26',
    950: '#000000',
  },
}
SCSS
$custom: #310a26;
$custom-light: #6b4c60;
$custom-dark: #000000;
JSON
{
  "hex": "#310a26",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 38
  },
  "hsl": {
    "h": 316.923,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22585,
    "c": 0.07356,
    "h": 340.8
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#310A26
secondary
#296E3C
accent
#E96F3F
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310A26

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

Preview Lab → · Contrast checker → · Palette generator →

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