#2F2802#2F2802

#2F2802 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.6% C 0.055 H 98.6°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2F2802
RGBrgb(47, 40, 2)
HSLhsl(51, 92%, 10%)
HSVhsv(51, 96%, 18%)
CMYKcmyk(0%, 14.9%, 95.7%, 81.6%)
CIE-LABlab(16.14, -1.83, 22.59)
CIE-LCHlch(16.14, 22.67, 94.63°)
OKLaboklab(27.64% -0.0082 0.0543)
OKLCHoklch(27.64% 0.055 98.6)
XYZxyz(1.9421, 2.1264, 0.3656)
Luminance0.0213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2802 #02092F
analogous
#2F1202 #2F2802 #202F02
triadic
#2F2802 #022F28 #28022F
tetradic
#2F2802 #022F12 #02092F #2F0220
square
#2F2802 #022F12 #02092F #2F0220
split-complementary
#2F2802 #02202F #12022F
monochromatic
#1D1901 #1D1901 #2F2802 #6A5A04 #A48C07

Accessibility & contrast

On white

14.73
#2F2802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2802
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2802#FFFFFF#000000##FFFFFF
##2F28021.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2802;
/* rgb */ color: rgb(47, 40, 2);
/* oklch */ color: oklch(27.6% 0.055 98.6);
Tailwind
colors: {
  custom: {
    50: '#696147',
    500: '#2f2802',
    950: '#000000',
  },
}
SCSS
$custom: #2f2802;
$custom-light: #696147;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2802",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 2
  },
  "hsl": {
    "h": 50.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.27644,
    "c": 0.05494,
    "h": 98.6
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#2F2802
secondary
#192774
accent
#4AFF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#060500
muted
#7A7977

Preview Lab

Preview with #2F2802

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

Preview Lab → · Contrast checker → · Palette generator →

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