#2F4B18#2F4B18

#2F4B18 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.084 H 133.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2F4B18
RGBrgb(47, 75, 24)
HSLhsl(93, 52%, 19%)
HSVhsv(93, 68%, 29%)
CMYKcmyk(37.3%, 0%, 68%, 70.6%)
CIE-LABlab(28.65, -20.69, 26.40)
CIE-LCHlch(28.65, 33.54, 128.09°)
OKLaboklab(37.79% -0.0577 0.0612)
OKLCHoklch(37.79% 0.084 133.3)
XYZxyz(3.8532, 5.7023, 1.7616)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B18 #34184B
analogous
#494B18 #2F4B18 #184B1B
triadic
#2F4B18 #182F4B #4B182F
tetradic
#2F4B18 #18494B #34184B #4B1B18
square
#2F4B18 #18494B #34184B #4B1B18
split-complementary
#2F4B18 #1B184B #4B1849
monochromatic
#0F1707 #121D09 #2F4B18 #4C7927 #69A836

Accessibility & contrast

On white

9.81
#2F4B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F4B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B18
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B18#FFFFFF#000000##FFFFFF
##2F4B181.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4512
Deuteranopia (green-blind)
#4A431C
Tritanopia (blue-blind)
#2F4840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4b18;
/* rgb */ color: rgb(47, 75, 24);
/* oklch */ color: oklch(37.8% 0.084 133.3);
Tailwind
colors: {
  custom: {
    50: '#6a7d57',
    500: '#2f4b18',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b18;
$custom-light: #6a7d57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b18",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 24
  },
  "hsl": {
    "h": 92.941,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.37788,
    "c": 0.08415,
    "h": 133.3
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#2F4B18
secondary
#633D82
accent
#4DDB9B
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4B18

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

Preview Lab → · Contrast checker → · Palette generator →

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