#2F5019#2F5019

#2F5019 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.091 H 134.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2F5019
RGBrgb(47, 80, 25)
HSLhsl(96, 52%, 21%)
HSVhsv(96, 69%, 31%)
CMYKcmyk(41.3%, 0%, 68.8%, 68.6%)
CIE-LABlab(30.43, -23.12, 27.86)
CIE-LCHlch(30.43, 36.20, 129.69°)
OKLaboklab(39.24% -0.0643 0.0645)
OKLCHoklch(39.24% 0.091 134.9)
XYZxyz(4.2163, 6.4116, 1.9349)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5019 #3A1950
analogous
#4A5019 #2F5019 #19501E
triadic
#2F5019 #192F50 #50192F
tetradic
#2F5019 #194A50 #3A1950 #501E19
square
#2F5019 #194A50 #3A1950 #501E19
split-complementary
#2F5019 #1E1950 #50194A
monochromatic
#0E1707 #14210A #2F5019 #4A7F28 #66AD36

Accessibility & contrast

On white

9.20
#2F5019 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F5019 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5019
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5019#FFFFFF#000000##FFFFFF
##2F50191.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534912
Deuteranopia (green-blind)
#4F471D
Tritanopia (blue-blind)
#2E4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5019;
/* rgb */ color: rgb(47, 80, 25);
/* oklch */ color: oklch(39.2% 0.091 134.9);
Tailwind
colors: {
  custom: {
    50: '#6a8158',
    500: '#2f5019',
    950: '#000000',
  },
}
SCSS
$custom: #2f5019;
$custom-light: #6a8158;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5019",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 25
  },
  "hsl": {
    "h": 96,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39242,
    "c": 0.09104,
    "h": 134.9
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#2F5019
secondary
#6A3E86
accent
#4CDCA2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5019

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

Preview Lab → · Contrast checker → · Palette generator →

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