#310122#310122

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

Color values

HEX#310122
RGBrgb(49, 1, 34)
HSLhsl(319, 96%, 10%)
HSVhsv(319, 98%, 19%)
CMYKcmyk(0%, 98%, 30.6%, 80.8%)
CIE-LABlab(7.14, 27.50, -8.92)
CIE-LCHlch(7.14, 28.91, 342.03°)
OKLaboklab(21.09% 0.084 -0.024)
OKLCHoklch(21.09% 0.087 344)
XYZxyz(1.5663, 0.7904, 1.5831)
Luminance0.0079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310122 #013110
analogous
#280131 #310122 #31010A
triadic
#310122 #223101 #012231
tetradic
#310122 #312801 #013110 #010A31
square
#310122 #312801 #013110 #010A31
split-complementary
#310122 #0A3101 #013128
monochromatic
#1E0115 #1E0115 #310122 #6D024C #A90375

Accessibility & contrast

On white

18.13
#310122 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310122
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310122#FFFFFF#000000##FFFFFF
##3101221.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310122;
/* rgb */ color: rgb(49, 1, 34);
/* oklch */ color: oklch(21.1% 0.087 344.0);
Tailwind
colors: {
  custom: {
    50: '#6c475d',
    500: '#310122',
    950: '#000000',
  },
}
SCSS
$custom: #310122;
$custom-light: #6c475d;
$custom-dark: #000000;
JSON
{
  "hex": "#310122",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 34
  },
  "hsl": {
    "h": 318.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21087,
    "c": 0.08733,
    "h": 344
  },
  "luminance": 0.0079
}

Semantic roles & 50–950 ramp

primary
#310122
secondary
#177735
accent
#FF6C29
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070004
muted
#7A7779

Preview Lab

Preview with #310122

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

Preview Lab → · Contrast checker → · Palette generator →

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