#310D27#310D27

#310D27 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.1% C 0.069 H 340.1°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#310D27
RGBrgb(49, 13, 39)
HSLhsl(317, 58%, 12%)
HSVhsv(317, 73%, 19%)
CMYKcmyk(0%, 73.5%, 20.4%, 80.8%)
CIE-LABlab(9.70, 21.92, -8.77)
CIE-LCHlch(9.70, 23.61, 338.20°)
OKLaboklab(23.06% 0.065 -0.0236)
OKLCHoklch(23.06% 0.069 340.1)
XYZxyz(1.7768, 1.0875, 2.0354)
Luminance0.0109 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D27 #0D3117
analogous
#290D31 #310D27 #310D15
triadic
#310D27 #27310D #0D2731
tetradic
#310D27 #31290D #0D3117 #0D1531
square
#310D27 #31290D #0D3117 #0D1531
split-complementary
#310D27 #15310D #0D3129
monochromatic
#180613 #180613 #310D27 #611A4D #922774

Accessibility & contrast

On white

17.25
#310D27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310D27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D27
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D27#FFFFFF#000000##FFFFFF
##310D271.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1728
Deuteranopia (green-blind)
#1A1D26
Tritanopia (blue-blind)
#340E18
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310d27;
/* rgb */ color: rgb(49, 13, 39);
/* oklch */ color: oklch(23.1% 0.069 340.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e61',
    500: '#310d27',
    950: '#000000',
  },
}
SCSS
$custom: #310d27;
$custom-light: #6b4e61;
$custom-dark: #000000;
JSON
{
  "hex": "#310d27",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 39
  },
  "hsl": {
    "h": 316.667,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23059,
    "c": 0.06914,
    "h": 340.1
  },
  "luminance": 0.01087
}

Semantic roles & 50–950 ramp

primary
#310D27
secondary
#2E6C3F
accent
#E17247
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070205
muted
#7A7879

Preview Lab

Preview with #310D27

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

Preview Lab → · Contrast checker → · Palette generator →

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