#310222#310222

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

Color values

HEX#310222
RGBrgb(49, 2, 34)
HSLhsl(319, 92%, 10%)
HSVhsv(319, 96%, 19%)
CMYKcmyk(0%, 95.9%, 30.6%, 80.8%)
CIE-LABlab(7.34, 26.94, -8.62)
CIE-LCHlch(7.34, 28.29, 342.26°)
OKLaboklab(21.24% 0.0821 -0.0231)
OKLCHoklch(21.24% 0.085 344.3)
XYZxyz(1.5771, 0.8121, 1.5868)
Luminance0.0081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310222 #023111
analogous
#290231 #310222 #31020A
triadic
#310222 #223102 #022231
tetradic
#310222 #312902 #023111 #020A31
square
#310222 #312902 #023111 #020A31
split-complementary
#310222 #0A3102 #023129
monochromatic
#1D0114 #1D0114 #310222 #6C044B #A70774

Accessibility & contrast

On white

18.07
#310222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310222
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310222#FFFFFF#000000##FFFFFF
##3102221.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071123
Deuteranopia (green-blind)
#161921
Tritanopia (blue-blind)
#350211
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310222;
/* rgb */ color: rgb(49, 2, 34);
/* oklch */ color: oklch(21.2% 0.085 344.3);
Tailwind
colors: {
  custom: {
    50: '#6c485d',
    500: '#310222',
    950: '#000000',
  },
}
SCSS
$custom: #310222;
$custom-light: #6c485d;
$custom-dark: #000000;
JSON
{
  "hex": "#310222",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 34
  },
  "hsl": {
    "h": 319.149,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21238,
    "c": 0.08525,
    "h": 344.3
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#310222
secondary
#197537
accent
#FF6D29
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310222

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

Preview Lab → · Contrast checker → · Palette generator →

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