#31051E#31051E

#31051E is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.5% C 0.077 H 350.3°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#31051E
RGBrgb(49, 5, 30)
HSLhsl(326, 81%, 11%)
HSVhsv(326, 90%, 19%)
CMYKcmyk(0%, 89.8%, 38.8%, 80.8%)
CIE-LABlab(7.73, 24.67, -4.94)
CIE-LCHlch(7.73, 25.16, 348.69°)
OKLaboklab(21.47% 0.0756 -0.0129)
OKLCHoklch(21.47% 0.077 350.3)
XYZxyz(1.5553, 0.8554, 1.3113)
Luminance0.0086 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31051E #053118
analogous
#2E0531 #31051E #310508
triadic
#31051E #1E3105 #051E31
tetradic
#31051E #312E05 #053118 #050831
square
#31051E #312E05 #053118 #050831
split-complementary
#31051E #083105 #05312E
monochromatic
#1C0311 #1C0311 #31051E #690B40 #A01062

Accessibility & contrast

On white

17.93
#31051E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31051E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31051E
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31051E#FFFFFF#000000##FFFFFF
##31051E1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C121F
Deuteranopia (green-blind)
#191A1D
Tritanopia (blue-blind)
#350310
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31051e;
/* rgb */ color: rgb(49, 5, 30);
/* oklch */ color: oklch(21.5% 0.077 350.3);
Tailwind
colors: {
  custom: {
    50: '#6c4959',
    500: '#31051e',
    950: '#000000',
  },
}
SCSS
$custom: #31051e;
$custom-light: #6c4959;
$custom-dark: #000000;
JSON
{
  "hex": "#31051e",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 30
  },
  "hsl": {
    "h": 325.909,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21466,
    "c": 0.07664,
    "h": 350.3
  },
  "luminance": 0.00855
}

Semantic roles & 50–950 ramp

primary
#31051E
secondary
#1F7243
accent
#F88630
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31051E

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

Preview Lab → · Contrast checker → · Palette generator →

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