#310522#310522

#310522 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.7% C 0.079 H 345.0°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#310522
RGBrgb(49, 5, 34)
HSLhsl(320, 81%, 11%)
HSVhsv(320, 90%, 19%)
CMYKcmyk(0%, 89.8%, 30.6%, 80.8%)
CIE-LABlab(7.92, 25.28, -7.72)
CIE-LCHlch(7.92, 26.43, 343.03°)
OKLaboklab(21.68% 0.0766 -0.0205)
OKLCHoklch(21.68% 0.079 345)
XYZxyz(1.6097, 0.8772, 1.5976)
Luminance0.0088 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310522 #053114
analogous
#2A0531 #310522 #31050C
triadic
#310522 #223105 #052231
tetradic
#310522 #312A05 #053114 #050C31
square
#310522 #312A05 #053114 #050C31
split-complementary
#310522 #0C3105 #05312A
monochromatic
#1C0313 #1C0313 #310522 #690B49 #A0106F

Accessibility & contrast

On white

17.87
#310522 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310522
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310522#FFFFFF#000000##FFFFFF
##3105221.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1323
Deuteranopia (green-blind)
#181A21
Tritanopia (blue-blind)
#350412
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310522;
/* rgb */ color: rgb(49, 5, 34);
/* oklch */ color: oklch(21.7% 0.079 345.0);
Tailwind
colors: {
  custom: {
    50: '#6b4a5d',
    500: '#310522',
    950: '#000000',
  },
}
SCSS
$custom: #310522;
$custom-light: #6b4a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#310522",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 34
  },
  "hsl": {
    "h": 320.455,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21677,
    "c": 0.07934,
    "h": 345
  },
  "luminance": 0.00877
}

Semantic roles & 50–950 ramp

primary
#310522
secondary
#1F723C
accent
#F87430
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310522

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

Preview Lab → · Contrast checker → · Palette generator →

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