#2F2804#2F2804

#2F2804 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.7% C 0.053 H 98.0°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2F2804
RGBrgb(47, 40, 4)
HSLhsl(50, 84%, 10%)
HSVhsv(50, 91%, 18%)
CMYKcmyk(0%, 14.9%, 91.5%, 81.6%)
CIE-LABlab(16.16, -1.67, 21.81)
CIE-LCHlch(16.16, 21.87, 94.37°)
OKLaboklab(27.67% -0.0073 0.0522)
OKLCHoklch(27.67% 0.053 98)
XYZxyz(1.9531, 2.1308, 0.4232)
Luminance0.0213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2804 #040B2F
analogous
#2F1304 #2F2804 #202F04
triadic
#2F2804 #042F28 #28042F
tetradic
#2F2804 #042F13 #040B2F #2F0420
square
#2F2804 #042F13 #040B2F #2F0420
split-complementary
#2F2804 #04202F #13042F
monochromatic
#1C1802 #1C1802 #2F2804 #675809 #A0880E

Accessibility & contrast

On white

14.72
#2F2804 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2804
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2804#FFFFFF#000000##FFFFFF
##2F28041.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2700
Deuteranopia (green-blind)
#2F2906
Tritanopia (blue-blind)
#342421
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f2804;
/* rgb */ color: rgb(47, 40, 4);
/* oklch */ color: oklch(27.7% 0.053 98.0);
Tailwind
colors: {
  custom: {
    50: '#696148',
    500: '#2f2804',
    950: '#000000',
  },
}
SCSS
$custom: #2f2804;
$custom-light: #696148;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2804",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 4
  },
  "hsl": {
    "h": 50.233,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27668,
    "c": 0.0527,
    "h": 98
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#2F2804
secondary
#1D2B72
accent
#4FFB2D
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#060500
muted
#7A7977

Preview Lab

Preview with #2F2804

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

Preview Lab → · Contrast checker → · Palette generator →

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