#310213#310213

#310213 is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 20.5% C 0.077 H 4.1°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#310213
RGBrgb(49, 2, 19)
HSLhsl(338, 92%, 10%)
HSVhsv(338, 96%, 19%)
CMYKcmyk(0%, 95.9%, 61.2%, 80.8%)
CIE-LABlab(6.72, 24.82, 1.78)
CIE-LCHlch(6.72, 24.89, 4.09°)
OKLaboklab(20.53% 0.0771 0.0056)
OKLCHoklch(20.53% 0.077 4.1)
XYZxyz(1.4060, 0.7436, 0.6855)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310213 #023120
analogous
#31022A #310213 #310902
triadic
#310213 #133102 #021331
tetradic
#310213 #2A3102 #023120 #090231
square
#310213 #2A3102 #023120 #090231
split-complementary
#310213 #023109 #022A31
monochromatic
#1D010B #1D010B #310213 #6C042A #A70741

Accessibility & contrast

On white

18.28
#310213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310213 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310213
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310213#FFFFFF#000000##FFFFFF
##3102131.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0F13
Deuteranopia (green-blind)
#1A1812
Tritanopia (blue-blind)
#360008
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310213;
/* rgb */ color: rgb(49, 2, 19);
/* oklch */ color: oklch(20.5% 0.077 4.1);
Tailwind
colors: {
  custom: {
    50: '#6d4750',
    500: '#310213',
    950: '#000000',
  },
}
SCSS
$custom: #310213;
$custom-light: #6d4750;
$custom-dark: #000000;
JSON
{
  "hex": "#310213",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 19
  },
  "hsl": {
    "h": 338.298,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20529,
    "c": 0.07731,
    "h": 4.1
  },
  "luminance": 0.00743
}

Semantic roles & 50–950 ramp

primary
#310213
secondary
#197554
accent
#FFB229
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310213

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

Preview Lab → · Contrast checker → · Palette generator →

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