#2F040C#2F040C

#2F040C is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.2% C 0.070 H 14.6°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#2F040C
RGBrgb(47, 4, 12)
HSLhsl(349, 84%, 10%)
HSVhsv(349, 91%, 18%)
CMYKcmyk(0%, 91.5%, 74.5%, 81.6%)
CIE-LABlab(6.48, 22.11, 5.19)
CIE-LCHlch(6.48, 22.71, 13.21°)
OKLaboklab(20.18% 0.0677 0.0177)
OKLCHoklch(20.18% 0.07 14.6)
XYZxyz(1.2822, 0.7179, 0.4188)
Luminance0.0072 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F040C #042F27
analogous
#2F0422 #2F040C #2F1104
triadic
#2F040C #0C2F04 #040C2F
tetradic
#2F040C #222F04 #042F27 #11042F
square
#2F040C #222F04 #042F27 #11042F
split-complementary
#2F040C #042F11 #04222F
monochromatic
#1C0207 #1C0207 #2F040C #67091A #A00E29

Accessibility & contrast

On white

18.36
#2F040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2F040C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F040C
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F040C#FFFFFF#000000##FFFFFF
##2F040C1.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0E0C
Deuteranopia (green-blind)
#1B180B
Tritanopia (blue-blind)
#340007
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2f040c;
/* rgb */ color: rgb(47, 4, 12);
/* oklch */ color: oklch(20.2% 0.070 14.6);
Tailwind
colors: {
  custom: {
    50: '#6b484c',
    500: '#2f040c',
    950: '#000000',
  },
}
SCSS
$custom: #2f040c;
$custom-light: #6b484c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f040c",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 348.837,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.20178,
    "c": 0.07001,
    "h": 14.6
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#2F040C
secondary
#1D7262
accent
#FBD42D
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #2F040C

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

Preview Lab → · Contrast checker → · Palette generator →

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