#31020F#31020F

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

Color values

HEX#31020F
RGBrgb(49, 2, 15)
HSLhsl(343, 92%, 10%)
HSVhsv(343, 96%, 19%)
CMYKcmyk(0%, 95.9%, 69.4%, 80.8%)
CIE-LABlab(6.60, 24.39, 3.94)
CIE-LCHlch(6.60, 24.71, 9.18°)
OKLaboklab(20.39% 0.0752 0.0128)
OKLCHoklch(20.39% 0.076 9.7)
XYZxyz(1.3747, 0.7311, 0.5206)
Luminance0.0073 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31020F #023124
analogous
#310227 #31020F #310C02
triadic
#31020F #0F3102 #020F31
tetradic
#31020F #273102 #023124 #0C0231
square
#31020F #273102 #023124 #0C0231
split-complementary
#31020F #02310C #022731
monochromatic
#1D0109 #1D0109 #31020F #6C0421 #A70733

Accessibility & contrast

On white

18.32
#31020F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31020F
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31020F#FFFFFF#000000##FFFFFF
##31020F1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0E0F
Deuteranopia (green-blind)
#1B180E
Tritanopia (blue-blind)
#370007
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31020f;
/* rgb */ color: rgb(49, 2, 15);
/* oklch */ color: oklch(20.4% 0.076 9.7);
Tailwind
colors: {
  custom: {
    50: '#6d474e',
    500: '#31020f',
    950: '#000000',
  },
}
SCSS
$custom: #31020f;
$custom-light: #6d474e;
$custom-dark: #000000;
JSON
{
  "hex": "#31020f",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 15
  },
  "hsl": {
    "h": 343.404,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20393,
    "c": 0.07633,
    "h": 9.7
  },
  "luminance": 0.00731
}

Semantic roles & 50–950 ramp

primary
#31020F
secondary
#19755C
accent
#FFC429
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #31020F

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

Preview Lab → · Contrast checker → · Palette generator →

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