#2F4915#2F4915

#2F4915 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.2% C 0.084 H 131.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F4915
RGBrgb(47, 73, 21)
HSLhsl(90, 55%, 18%)
HSVhsv(90, 71%, 29%)
CMYKcmyk(35.6%, 0%, 71.2%, 71.4%)
CIE-LABlab(27.91, -19.96, 27.11)
CIE-LCHlch(27.91, 33.66, 126.36°)
OKLaboklab(37.18% -0.056 0.0623)
OKLCHoklch(37.18% 0.084 131.9)
XYZxyz(3.6901, 5.4234, 1.5617)
Luminance0.0542 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4915 #2F1549
analogous
#494915 #2F4915 #154915
triadic
#2F4915 #152F49 #49152F
tetradic
#2F4915 #154949 #2F1549 #491515
square
#2F4915 #154949 #2F1549 #491515
split-complementary
#2F4915 #151549 #491549
monochromatic
#0F1807 #101907 #2F4915 #4E7923 #6CA830

Accessibility & contrast

On white

10.07
#2F4915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F4915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4915
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4915#FFFFFF#000000##FFFFFF
##2F49151.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430E
Deuteranopia (green-blind)
#494119
Tritanopia (blue-blind)
#30463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f4915;
/* rgb */ color: rgb(47, 73, 21);
/* oklch */ color: oklch(37.2% 0.084 131.9);
Tailwind
colors: {
  custom: {
    50: '#6a7c55',
    500: '#2f4915',
    950: '#000000',
  },
}
SCSS
$custom: #2f4915;
$custom-light: #6a7c55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4915",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 21
  },
  "hsl": {
    "h": 90,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37175,
    "c": 0.08378,
    "h": 131.9
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#2F4915
secondary
#5D3981
accent
#49DF94
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4915

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

Preview Lab → · Contrast checker → · Palette generator →

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