#310420#310420

#310420 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.080 H 347.3°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#310420
RGBrgb(49, 4, 32)
HSLhsl(323, 85%, 10%)
HSVhsv(323, 92%, 19%)
CMYKcmyk(0%, 91.8%, 34.7%, 80.8%)
CIE-LABlab(7.63, 25.52, -6.63)
CIE-LCHlch(7.63, 26.37, 345.43°)
OKLaboklab(21.42% 0.0779 -0.0175)
OKLCHoklch(21.42% 0.08 347.3)
XYZxyz(1.5708, 0.8443, 1.4465)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310420 #043115
analogous
#2B0431 #310420 #310409
triadic
#310420 #203104 #042031
tetradic
#310420 #312B04 #043115 #040931
square
#310420 #312B04 #043115 #040931
split-complementary
#310420 #093104 #04312B
monochromatic
#1C0212 #1C0212 #310420 #6A0945 #A20D6A

Accessibility & contrast

On white

17.97
#310420 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310420 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310420
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310420#FFFFFF#000000##FFFFFF
##3104201.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1221
Deuteranopia (green-blind)
#181A1F
Tritanopia (blue-blind)
#350310
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310420;
/* rgb */ color: rgb(49, 4, 32);
/* oklch */ color: oklch(21.4% 0.080 347.3);
Tailwind
colors: {
  custom: {
    50: '#6c495b',
    500: '#310420',
    950: '#000000',
  },
}
SCSS
$custom: #310420;
$custom-light: #6c495b;
$custom-dark: #000000;
JSON
{
  "hex": "#310420",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 32
  },
  "hsl": {
    "h": 322.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21423,
    "c": 0.07987,
    "h": 347.3
  },
  "luminance": 0.00844
}

Semantic roles & 50–950 ramp

primary
#310420
secondary
#1D733E
accent
#FB7B2D
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310420

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

Preview Lab → · Contrast checker → · Palette generator →

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