#2F460F#2F460F

#2F460F is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.2% C 0.084 H 129.6°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#2F460F
RGBrgb(47, 70, 15)
HSLhsl(85, 65%, 17%)
HSVhsv(85, 79%, 27%)
CMYKcmyk(32.9%, 0%, 78.6%, 72.5%)
CIE-LABlab(26.79, -18.91, 28.79)
CIE-LCHlch(26.79, 34.44, 123.29°)
OKLaboklab(36.25% -0.0537 0.0649)
OKLCHoklch(36.25% 0.084 129.6)
XYZxyz(3.4487, 5.0190, 1.2389)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F460F #260F46
analogous
#46420F #2F460F #14460F
triadic
#2F460F #0F2F46 #460F2F
tetradic
#2F460F #0F4642 #260F46 #460F14
square
#2F460F #0F4642 #260F46 #460F14
split-complementary
#2F460F #0F1446 #420F46
monochromatic
#111905 #111905 #2F460F #51781A #73AB25

Accessibility & contrast

On white

10.48
#2F460F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F460F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F460F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F460F#FFFFFF#000000##FFFFFF
##2F460F1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4006
Deuteranopia (green-blind)
#463F14
Tritanopia (blue-blind)
#31433B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f460f;
/* rgb */ color: rgb(47, 70, 15);
/* oklch */ color: oklch(36.2% 0.084 129.6);
Tailwind
colors: {
  custom: {
    50: '#6a7951',
    500: '#2f460f',
    950: '#000000',
  },
}
SCSS
$custom: #2f460f;
$custom-light: #6a7951;
$custom-dark: #000000;
JSON
{
  "hex": "#2f460f",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 15
  },
  "hsl": {
    "h": 85.091,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.36247,
    "c": 0.08424,
    "h": 129.6
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#2F460F
secondary
#523080
accent
#40E886
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F460F

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

Preview Lab → · Contrast checker → · Palette generator →

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