#2F2811#2F2811

#2F2811 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 27.8% C 0.038 H 92.8°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2811
RGBrgb(47, 40, 17)
HSLhsl(46, 47%, 13%)
HSVhsv(46, 64%, 18%)
CMYKcmyk(0%, 14.9%, 63.8%, 81.6%)
CIE-LABlab(16.32, -0.52, 16.11)
CIE-LCHlch(16.32, 16.12, 91.86°)
OKLaboklab(27.85% -0.0019 0.0384)
OKLCHoklch(27.85% 0.038 92.8)
XYZxyz(2.0323, 2.1625, 0.8406)
Luminance0.0216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2811 #11182F
analogous
#2F1911 #2F2811 #272F11
triadic
#2F2811 #112F28 #28112F
tetradic
#2F2811 #112F19 #11182F #2F1127
square
#2F2811 #112F19 #11182F #2F1127
split-complementary
#2F2811 #11272F #19112F
monochromatic
#161308 #161308 #2F2811 #5C4E21 #897432

Accessibility & contrast

On white

14.66
#2F2811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F2811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2811
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2811#FFFFFF#000000##FFFFFF
##2F28111.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C270F
Deuteranopia (green-blind)
#2E2912
Tritanopia (blue-blind)
#332523
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f2811;
/* rgb */ color: rgb(47, 40, 17);
/* oklch */ color: oklch(27.8% 0.038 92.8);
Tailwind
colors: {
  custom: {
    50: '#68614f',
    500: '#2f2811',
    950: '#000000',
  },
}
SCSS
$custom: #2f2811;
$custom-light: #68614f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2811",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 17
  },
  "hsl": {
    "h": 46,
    "s": 46.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.27845,
    "c": 0.03842,
    "h": 92.8
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#2F2811
secondary
#344067
accent
#70D751
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#060502
muted
#7A7978

Preview Lab

Preview with #2F2811

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

Preview Lab → · Contrast checker → · Palette generator →

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