#2F470C#2F470C

#2F470C is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.5% C 0.088 H 129.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2F470C
RGBrgb(47, 71, 12)
HSLhsl(84, 71%, 16%)
HSVhsv(84, 83%, 28%)
CMYKcmyk(33.8%, 0%, 83.1%, 72.2%)
CIE-LABlab(27.12, -19.65, 30.40)
CIE-LCHlch(27.12, 36.20, 122.88°)
OKLaboklab(36.51% -0.056 0.0677)
OKLCHoklch(36.51% 0.088 129.6)
XYZxyz(3.4919, 5.1373, 1.1554)
Luminance0.0514 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F470C #240C47
analogous
#47420C #2F470C #12470C
triadic
#2F470C #0C2F47 #470C2F
tetradic
#2F470C #0C4742 #240C47 #470C12
square
#2F470C #0C4742 #240C47 #470C12
split-complementary
#2F470C #0C1247 #420C47
monochromatic
#111A04 #111A04 #2F470C #527B15 #74B01E

Accessibility & contrast

On white

10.36
#2F470C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F470C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F470C
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F470C#FFFFFF#000000##FFFFFF
##2F470C1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4102
Deuteranopia (green-blind)
#474012
Tritanopia (blue-blind)
#31443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f470c;
/* rgb */ color: rgb(47, 71, 12);
/* oklch */ color: oklch(36.5% 0.088 129.6);
Tailwind
colors: {
  custom: {
    50: '#6a7a50',
    500: '#2f470c',
    950: '#000000',
  },
}
SCSS
$custom: #2f470c;
$custom-light: #6a7a50;
$custom-dark: #000000;
JSON
{
  "hex": "#2f470c",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 12
  },
  "hsl": {
    "h": 84.407,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.36511,
    "c": 0.0879,
    "h": 129.6
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#2F470C
secondary
#4F2C83
accent
#3AEE83
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F470C

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

Preview Lab → · Contrast checker → · Palette generator →

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