#2F4F0C#2F4F0C

#2F4F0C is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.099 H 132.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2F4F0C
RGBrgb(47, 79, 12)
HSLhsl(89, 74%, 18%)
HSVhsv(89, 85%, 31%)
CMYKcmyk(40.5%, 0%, 84.8%, 69%)
CIE-LABlab(29.97, -23.72, 33.12)
CIE-LCHlch(29.97, 40.74, 125.61°)
OKLaboklab(38.83% -0.067 0.0735)
OKLCHoklch(38.83% 0.099 132.4)
XYZxyz(4.0346, 6.2227, 1.3363)
Luminance0.0622 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F0C #2C0C4F
analogous
#4F4D0C #2F4F0C #0D4F0C
triadic
#2F4F0C #0C2F4F #4F0C2F
tetradic
#2F4F0C #0C4F4D #2C0C4F #4F0C0D
square
#2F4F0C #0C4F4D #2C0C4F #4F0C0D
split-complementary
#2F4F0C #0C0D4F #4D0C4F
monochromatic
#101B04 #101B04 #2F4F0C #4F8414 #6EB91C

Accessibility & contrast

On white

9.36
#2F4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F4F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F0C
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F0C#FFFFFF#000000##FFFFFF
##2F4F0C1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534800
Deuteranopia (green-blind)
#4E4613
Tritanopia (blue-blind)
#304B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4f0c;
/* rgb */ color: rgb(47, 79, 12);
/* oklch */ color: oklch(38.8% 0.099 132.4);
Tailwind
colors: {
  custom: {
    50: '#6b8051',
    500: '#2f4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f0c;
$custom-light: #6b8051;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f0c",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 88.657,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38832,
    "c": 0.09943,
    "h": 132.4
  },
  "luminance": 0.06223
}

Semantic roles & 50–950 ramp

primary
#2F4F0C
secondary
#592C8B
accent
#38F090
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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