#310D28#310D28

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

Color values

HEX#310D28
RGBrgb(49, 13, 40)
HSLhsl(315, 58%, 12%)
HSVhsv(315, 73%, 19%)
CMYKcmyk(0%, 73.5%, 18.4%, 80.8%)
CIE-LABlab(9.75, 22.11, -9.44)
CIE-LCHlch(9.75, 24.04, 336.89°)
OKLaboklab(23.12% 0.0652 -0.0255)
OKLCHoklch(23.12% 0.07 338.7)
XYZxyz(1.7936, 1.0942, 2.1238)
Luminance0.0109 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D28 #0D3116
analogous
#280D31 #310D28 #310D16
triadic
#310D28 #28310D #0D2831
tetradic
#310D28 #31280D #0D3116 #0D1631
square
#310D28 #31280D #0D3116 #0D1631
split-complementary
#310D28 #16310D #0D3128
monochromatic
#180614 #180614 #310D28 #611A4F #922777

Accessibility & contrast

On white

17.23
#310D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D28
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D28#FFFFFF#000000##FFFFFF
##310D281.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1729
Deuteranopia (green-blind)
#191D27
Tritanopia (blue-blind)
#340E18
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310d28;
/* rgb */ color: rgb(49, 13, 40);
/* oklch */ color: oklch(23.1% 0.070 338.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e62',
    500: '#310d28',
    950: '#000000',
  },
}
SCSS
$custom: #310d28;
$custom-light: #6b4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#310d28",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 40
  },
  "hsl": {
    "h": 315,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23115,
    "c": 0.07003,
    "h": 338.7
  },
  "luminance": 0.01094
}

Semantic roles & 50–950 ramp

primary
#310D28
secondary
#2E6C3D
accent
#E16D47
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #310D28

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

Preview Lab → · Contrast checker → · Palette generator →

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