#310728#310728

#310728 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.3% C 0.080 H 337.9°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#310728
RGBrgb(49, 7, 40)
HSLhsl(313, 75%, 11%)
HSVhsv(313, 86%, 19%)
CMYKcmyk(0%, 85.7%, 18.4%, 80.8%)
CIE-LABlab(8.64, 25.21, -11.16)
CIE-LCHlch(8.64, 27.57, 336.11°)
OKLaboklab(22.3% 0.0745 -0.0303)
OKLCHoklch(22.3% 0.08 337.9)
XYZxyz(1.7256, 0.9583, 2.1012)
Luminance0.0096 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310728 #073110
analogous
#250731 #310728 #310713
triadic
#310728 #283107 #072831
tetradic
#310728 #312507 #073110 #071331
square
#310728 #312507 #073110 #071331
split-complementary
#310728 #133107 #073125
monochromatic
#1B0416 #1B0416 #310728 #670F54 #9C167F

Accessibility & contrast

On white

17.62
#310728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310728
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310728#FFFFFF#000000##FFFFFF
##3107281.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081529
Deuteranopia (green-blind)
#161B27
Tritanopia (blue-blind)
#340916
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310728;
/* rgb */ color: rgb(49, 7, 40);
/* oklch */ color: oklch(22.3% 0.080 337.9);
Tailwind
colors: {
  custom: {
    50: '#6b4b62',
    500: '#310728',
    950: '#000000',
  },
}
SCSS
$custom: #310728;
$custom-light: #6b4b62;
$custom-dark: #000000;
JSON
{
  "hex": "#310728",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 312.857,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22304,
    "c": 0.08042,
    "h": 337.9
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#310728
secondary
#237134
accent
#F25E36
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310728

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

Preview Lab → · Contrast checker → · Palette generator →

#310728 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva