#310121#310121

#310121 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.0% C 0.087 H 345.2°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#310121
RGBrgb(49, 1, 33)
HSLhsl(320, 96%, 10%)
HSVhsv(320, 98%, 19%)
CMYKcmyk(0%, 98%, 32.7%, 80.8%)
CIE-LABlab(7.09, 27.33, -8.23)
CIE-LCHlch(7.09, 28.55, 343.25°)
OKLaboklab(21.03% 0.0838 -0.0221)
OKLCHoklch(21.03% 0.087 345.2)
XYZxyz(1.5521, 0.7847, 1.5083)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310121 #013111
analogous
#290131 #310121 #310109
triadic
#310121 #213101 #012131
tetradic
#310121 #312901 #013111 #010931
square
#310121 #312901 #013111 #010931
split-complementary
#310121 #093101 #013129
monochromatic
#1E0114 #1E0114 #310121 #6D0249 #A90372

Accessibility & contrast

On white

18.15
#310121 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310121
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310121#FFFFFF#000000##FFFFFF
##3101211.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061022
Deuteranopia (green-blind)
#161920
Tritanopia (blue-blind)
#350010
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310121;
/* rgb */ color: rgb(49, 1, 33);
/* oklch */ color: oklch(21.0% 0.087 345.2);
Tailwind
colors: {
  custom: {
    50: '#6c475c',
    500: '#310121',
    950: '#000000',
  },
}
SCSS
$custom: #310121;
$custom-light: #6c475c;
$custom-dark: #000000;
JSON
{
  "hex": "#310121",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 33
  },
  "hsl": {
    "h": 320,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21029,
    "c": 0.08664,
    "h": 345.2
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#310121
secondary
#177737
accent
#FF7029
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070004
muted
#7A7779

Preview Lab

Preview with #310121

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

Preview Lab → · Contrast checker → · Palette generator →

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