#310828#310828

#310828 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.4% C 0.079 H 338.0°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#310828
RGBrgb(49, 8, 40)
HSLhsl(313, 72%, 11%)
HSVhsv(313, 84%, 19%)
CMYKcmyk(0%, 83.7%, 18.4%, 80.8%)
CIE-LABlab(8.82, 24.69, -10.88)
CIE-LCHlch(8.82, 26.98, 336.23°)
OKLaboklab(22.44% 0.0729 -0.0295)
OKLCHoklch(22.44% 0.079 338)
XYZxyz(1.7365, 0.9800, 2.1048)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310828 #083111
analogous
#250831 #310828 #310813
triadic
#310828 #283108 #082831
tetradic
#310828 #312508 #083111 #081331
square
#310828 #312508 #083111 #081331
split-complementary
#310828 #133108 #083125
monochromatic
#1A0415 #1A0415 #310828 #661153 #9A197E

Accessibility & contrast

On white

17.56
#310828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310828
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310828#FFFFFF#000000##FFFFFF
##3108281.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1529
Deuteranopia (green-blind)
#171B27
Tritanopia (blue-blind)
#340A16
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310828;
/* rgb */ color: rgb(49, 8, 40);
/* oklch */ color: oklch(22.4% 0.079 338.0);
Tailwind
colors: {
  custom: {
    50: '#6b4b62',
    500: '#310828',
    950: '#000000',
  },
}
SCSS
$custom: #310828;
$custom-light: #6b4b62;
$custom-dark: #000000;
JSON
{
  "hex": "#310828",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 40
  },
  "hsl": {
    "h": 313.171,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22438,
    "c": 0.07868,
    "h": 338
  },
  "luminance": 0.0098
}

Semantic roles & 50–950 ramp

primary
#310828
secondary
#257035
accent
#EF6139
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310828

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

Preview Lab → · Contrast checker → · Palette generator →

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