#310A28#310A28

#310A28 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.7% C 0.075 H 338.2°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#310A28
RGBrgb(49, 10, 40)
HSLhsl(314, 66%, 12%)
HSVhsv(314, 80%, 19%)
CMYKcmyk(0%, 79.6%, 18.4%, 80.8%)
CIE-LABlab(9.18, 23.68, -10.31)
CIE-LCHlch(9.18, 25.83, 336.46°)
OKLaboklab(22.7% 0.0699 -0.0279)
OKLCHoklch(22.7% 0.075 338.2)
XYZxyz(1.7582, 1.0234, 2.1120)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A28 #0A3113
analogous
#270A31 #310A28 #310A15
triadic
#310A28 #28310A #0A2831
tetradic
#310A28 #31270A #0A3113 #0A1531
square
#310A28 #31270A #0A3113 #0A1531
split-complementary
#310A28 #15310A #0A3127
monochromatic
#190515 #190515 #310A28 #641451 #971F7B

Accessibility & contrast

On white

17.43
#310A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A28
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A28#FFFFFF#000000##FFFFFF
##310A281.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1629
Deuteranopia (green-blind)
#181C27
Tritanopia (blue-blind)
#340C17
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310a28;
/* rgb */ color: rgb(49, 10, 40);
/* oklch */ color: oklch(22.7% 0.075 338.2);
Tailwind
colors: {
  custom: {
    50: '#6b4d62',
    500: '#310a28',
    950: '#000000',
  },
}
SCSS
$custom: #310a28;
$custom-light: #6b4d62;
$custom-dark: #000000;
JSON
{
  "hex": "#310a28",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 40
  },
  "hsl": {
    "h": 313.846,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.227,
    "c": 0.07528,
    "h": 338.2
  },
  "luminance": 0.01023
}

Semantic roles & 50–950 ramp

primary
#310A28
secondary
#296E39
accent
#E9663F
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310A28

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

Preview Lab → · Contrast checker → · Palette generator →

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