#310524#310524

#310524 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.8% C 0.081 H 342.5°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#310524
RGBrgb(49, 5, 36)
HSLhsl(318, 81%, 11%)
HSVhsv(318, 90%, 19%)
CMYKcmyk(0%, 89.8%, 26.5%, 80.8%)
CIE-LABlab(8.03, 25.60, -9.08)
CIE-LCHlch(8.03, 27.17, 340.48°)
OKLaboklab(21.79% 0.0771 -0.0244)
OKLCHoklch(21.79% 0.081 342.5)
XYZxyz(1.6394, 0.8891, 1.7540)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310524 #053112
analogous
#280531 #310524 #31050E
triadic
#310524 #243105 #052431
tetradic
#310524 #312805 #053112 #050E31
square
#310524 #312805 #053112 #050E31
split-complementary
#310524 #0E3105 #053128
monochromatic
#1C0314 #1C0314 #310524 #690B4D #A01076

Accessibility & contrast

On white

17.83
#310524 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310524 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310524
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310524#FFFFFF#000000##FFFFFF
##3105241.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091325
Deuteranopia (green-blind)
#171A23
Tritanopia (blue-blind)
#350513
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310524;
/* rgb */ color: rgb(49, 5, 36);
/* oklch */ color: oklch(21.8% 0.081 342.5);
Tailwind
colors: {
  custom: {
    50: '#6b4a5e',
    500: '#310524',
    950: '#000000',
  },
}
SCSS
$custom: #310524;
$custom-light: #6b4a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#310524",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 36
  },
  "hsl": {
    "h": 317.727,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2179,
    "c": 0.08084,
    "h": 342.5
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#310524
secondary
#1F7238
accent
#F86B30
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310524

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

Preview Lab → · Contrast checker → · Palette generator →

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