#2F4007#2F4007

#2F4007 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.081 H 125.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4007
RGBrgb(47, 64, 7)
HSLhsl(78, 80%, 14%)
HSVhsv(78, 89%, 25%)
CMYKcmyk(26.6%, 0%, 89.1%, 74.9%)
CIE-LABlab(24.60, -16.20, 29.99)
CIE-LCHlch(24.60, 34.09, 118.37°)
OKLaboklab(34.45% -0.0471 0.066)
OKLCHoklch(34.45% 0.081 125.5)
XYZxyz(3.0441, 4.2864, 0.8680)
Luminance0.0429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4007 #180740
analogous
#403507 #2F4007 #134007
triadic
#2F4007 #072F40 #40072F
tetradic
#2F4007 #074035 #180740 #400713
square
#2F4007 #074035 #180740 #400713
split-complementary
#2F4007 #071340 #350740
monochromatic
#141C03 #141C03 #2F4007 #58770D #80AE13

Accessibility & contrast

On white

11.31
#2F4007 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F4007 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4007
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4007#FFFFFF#000000##FFFFFF
##2F40071.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#423A0D
Tritanopia (blue-blind)
#323C35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f4007;
/* rgb */ color: rgb(47, 64, 7);
/* oklch */ color: oklch(34.4% 0.081 125.5);
Tailwind
colors: {
  custom: {
    50: '#6a744c',
    500: '#2f4007',
    950: '#000000',
  },
}
SCSS
$custom: #2f4007;
$custom-light: #6a744c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4007",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 7
  },
  "hsl": {
    "h": 77.895,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.34449,
    "c": 0.08107,
    "h": 125.5
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#2F4007
secondary
#3F247F
accent
#31F76C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4007

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

Preview Lab → · Contrast checker → · Palette generator →

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