#2F2812#2F2812

#2F2812 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 27.9% C 0.037 H 92.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2F2812
RGBrgb(47, 40, 18)
HSLhsl(46, 45%, 13%)
HSVhsv(46, 62%, 18%)
CMYKcmyk(0%, 14.9%, 61.7%, 81.6%)
CIE-LABlab(16.33, -0.41, 15.54)
CIE-LCHlch(16.33, 15.54, 91.51°)
OKLaboklab(27.86% -0.0014 0.0371)
OKLCHoklch(27.86% 0.037 92.2)
XYZxyz(2.0403, 2.1657, 0.8827)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2812 #12192F
analogous
#2F1912 #2F2812 #272F12
triadic
#2F2812 #122F28 #28122F
tetradic
#2F2812 #122F19 #12192F #2F1227
square
#2F2812 #122F19 #12192F #2F1227
split-complementary
#2F2812 #12272F #19122F
monochromatic
#161308 #161308 #2F2812 #5B4E23 #887334

Accessibility & contrast

On white

14.65
#2F2812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2812
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2812#FFFFFF#000000##FFFFFF
##2F28121.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2812;
/* rgb */ color: rgb(47, 40, 18);
/* oklch */ color: oklch(27.9% 0.037 92.2);
Tailwind
colors: {
  custom: {
    50: '#686150',
    500: '#2f2812',
    950: '#000000',
  },
}
SCSS
$custom: #2f2812;
$custom-light: #686150;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2812",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 45.517,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.27862,
    "c": 0.03714,
    "h": 92.2
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#2F2812
secondary
#364267
accent
#73D453
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#060502
muted
#7A7978

Preview Lab

Preview with #2F2812

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

Preview Lab → · Contrast checker → · Palette generator →

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