#2F4A12#2F4A12

#2F4A12 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.088 H 131.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2F4A12
RGBrgb(47, 74, 18)
HSLhsl(89, 61%, 18%)
HSVhsv(89, 76%, 29%)
CMYKcmyk(36.5%, 0%, 75.7%, 71%)
CIE-LABlab(28.24, -20.75, 28.91)
CIE-LCHlch(28.24, 35.58, 125.68°)
OKLaboklab(37.43% -0.0585 0.0657)
OKLCHoklch(37.43% 0.088 131.7)
XYZxyz(3.7302, 5.5454, 1.4460)
Luminance0.0555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A12 #2D124A
analogous
#4A4912 #2F4A12 #134A12
triadic
#2F4A12 #122F4A #4A122F
tetradic
#2F4A12 #124A49 #2D124A #4A1213
square
#2F4A12 #124A49 #2D124A #4A1213
split-complementary
#2F4A12 #12134A #49124A
monochromatic
#101906 #101906 #2F4A12 #4E7B1E #6EAC2A

Accessibility & contrast

On white

9.96
#2F4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F4A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A12
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A12#FFFFFF#000000##FFFFFF
##2F4A121.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D440A
Deuteranopia (green-blind)
#4A4217
Tritanopia (blue-blind)
#30473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4a12;
/* rgb */ color: rgb(47, 74, 18);
/* oklch */ color: oklch(37.4% 0.088 131.7);
Tailwind
colors: {
  custom: {
    50: '#6a7c53',
    500: '#2f4a12',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a12;
$custom-light: #6a7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a12",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 88.929,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37432,
    "c": 0.08791,
    "h": 131.7
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#2F4A12
secondary
#5B3583
accent
#44E491
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #2F4A12

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

Preview Lab → · Contrast checker → · Palette generator →

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