#2F041B#2F041B

#2F041B is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.7% C 0.075 H 352.3°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#2F041B
RGBrgb(47, 4, 27)
HSLhsl(328, 84%, 10%)
HSVhsv(328, 91%, 18%)
CMYKcmyk(0%, 91.5%, 42.6%, 81.6%)
CIE-LABlab(6.96, 24.00, -3.79)
CIE-LCHlch(6.96, 24.29, 351.02°)
OKLaboklab(20.74% 0.0743 -0.01)
OKLCHoklch(20.74% 0.075 352.3)
XYZxyz(1.4136, 0.7705, 1.1110)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F041B #042F18
analogous
#2E042F #2F041B #2F0405
triadic
#2F041B #1B2F04 #041B2F
tetradic
#2F041B #2F2E04 #042F18 #04052F
square
#2F041B #2F2E04 #042F18 #04052F
split-complementary
#2F041B #052F04 #042F2E
monochromatic
#1C0210 #1C0210 #2F041B #67093B #A00E5C

Accessibility & contrast

On white

18.20
#2F041B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2F041B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F041B
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F041B#FFFFFF#000000##FFFFFF
##2F041B1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B101C
Deuteranopia (green-blind)
#18181A
Tritanopia (blue-blind)
#33020E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2f041b;
/* rgb */ color: rgb(47, 4, 27);
/* oklch */ color: oklch(20.7% 0.075 352.3);
Tailwind
colors: {
  custom: {
    50: '#6a4857',
    500: '#2f041b',
    950: '#000000',
  },
}
SCSS
$custom: #2f041b;
$custom-light: #6a4857;
$custom-dark: #000000;
JSON
{
  "hex": "#2f041b",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 27
  },
  "hsl": {
    "h": 327.907,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.20743,
    "c": 0.07498,
    "h": 352.3
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#2F041B
secondary
#1D7244
accent
#FB8D2D
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #2F041B

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

Preview Lab → · Contrast checker → · Palette generator →

#2F041B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva