#31020E#31020E

#31020E is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 20.4% C 0.076 H 11.0°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#31020E
RGBrgb(49, 2, 14)
HSLhsl(345, 92%, 10%)
HSVhsv(345, 96%, 19%)
CMYKcmyk(0%, 95.9%, 71.4%, 80.8%)
CIE-LABlab(6.58, 24.29, 4.42)
CIE-LCHlch(6.58, 24.69, 10.31°)
OKLaboklab(20.36% 0.0748 0.0146)
OKLCHoklch(20.36% 0.076 11)
XYZxyz(1.3677, 0.7283, 0.4839)
Luminance0.0073 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31020E #023125
analogous
#310225 #31020E #310E02
triadic
#31020E #0E3102 #020E31
tetradic
#31020E #253102 #023125 #0E0231
square
#31020E #253102 #023125 #0E0231
split-complementary
#31020E #02310E #022531
monochromatic
#1D0108 #1D0108 #31020E #6C041F #A70730

Accessibility & contrast

On white

18.33
#31020E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#31020E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31020E
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31020E#FFFFFF#000000##FFFFFF
##31020E1.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0E0E
Deuteranopia (green-blind)
#1B180D
Tritanopia (blue-blind)
#370006
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31020e;
/* rgb */ color: rgb(49, 2, 14);
/* oklch */ color: oklch(20.4% 0.076 11.0);
Tailwind
colors: {
  custom: {
    50: '#6d474d',
    500: '#31020e',
    950: '#000000',
  },
}
SCSS
$custom: #31020e;
$custom-light: #6d474d;
$custom-dark: #000000;
JSON
{
  "hex": "#31020e",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 14
  },
  "hsl": {
    "h": 344.681,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20363,
    "c": 0.07616,
    "h": 11
  },
  "luminance": 0.00728
}

Semantic roles & 50–950 ramp

primary
#31020E
secondary
#19755E
accent
#FFC829
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31020E

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

Preview Lab → · Contrast checker → · Palette generator →

#31020E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva