#310221#310221

#310221 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.2% C 0.085 H 345.5°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#310221
RGBrgb(49, 2, 33)
HSLhsl(320, 92%, 10%)
HSVhsv(320, 96%, 19%)
CMYKcmyk(0%, 95.9%, 32.7%, 80.8%)
CIE-LABlab(7.28, 26.78, -7.93)
CIE-LCHlch(7.28, 27.93, 343.51°)
OKLaboklab(21.18% 0.0819 -0.0212)
OKLCHoklch(21.18% 0.085 345.5)
XYZxyz(1.5629, 0.8064, 1.5119)
Luminance0.0081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310221 #023112
analogous
#2A0231 #310221 #310209
triadic
#310221 #213102 #022131
tetradic
#310221 #312A02 #023112 #020931
square
#310221 #312A02 #023112 #020931
split-complementary
#310221 #093102 #02312A
monochromatic
#1D0114 #1D0114 #310221 #6C0449 #A70770

Accessibility & contrast

On white

18.08
#310221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310221 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310221
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310221#FFFFFF#000000##FFFFFF
##3102211.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071122
Deuteranopia (green-blind)
#171920
Tritanopia (blue-blind)
#350110
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310221;
/* rgb */ color: rgb(49, 2, 33);
/* oklch */ color: oklch(21.2% 0.085 345.5);
Tailwind
colors: {
  custom: {
    50: '#6c485c',
    500: '#310221',
    950: '#000000',
  },
}
SCSS
$custom: #310221;
$custom-light: #6c485c;
$custom-dark: #000000;
JSON
{
  "hex": "#310221",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 320.426,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21181,
    "c": 0.08456,
    "h": 345.5
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#310221
secondary
#197539
accent
#FF7229
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310221

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

Preview Lab → · Contrast checker → · Palette generator →

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