#2F511C#2F511C

#2F511C is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.090 H 135.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2F511C
RGBrgb(47, 81, 28)
HSLhsl(98, 49%, 21%)
HSVhsv(98, 65%, 32%)
CMYKcmyk(42%, 0%, 65.4%, 68.2%)
CIE-LABlab(30.81, -23.29, 26.75)
CIE-LCHlch(30.81, 35.47, 131.05°)
OKLaboklab(39.57% -0.0645 0.0625)
OKLCHoklch(39.57% 0.09 135.9)
XYZxyz(4.3242, 6.5728, 2.1392)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F511C #3E1C51
analogous
#4A511C #2F511C #1C5124
triadic
#2F511C #1C2F51 #511C2F
tetradic
#2F511C #1C4A51 #3E1C51 #51241C
square
#2F511C #1C4A51 #3E1C51 #51241C
split-complementary
#2F511C #241C51 #511C4A
monochromatic
#0D1708 #15240C #2F511C #497E2C #64AC3B

Accessibility & contrast

On white

9.07
#2F511C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F511C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F511C
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F511C#FFFFFF#000000##FFFFFF
##2F511C1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A16
Deuteranopia (green-blind)
#4F4720
Tritanopia (blue-blind)
#2E4E46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f511c;
/* rgb */ color: rgb(47, 81, 28);
/* oklch */ color: oklch(39.6% 0.090 135.9);
Tailwind
colors: {
  custom: {
    50: '#6a825a',
    500: '#2f511c',
    950: '#000000',
  },
}
SCSS
$custom: #2f511c;
$custom-light: #6a825a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f511c",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 28
  },
  "hsl": {
    "h": 98.491,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.39568,
    "c": 0.08979,
    "h": 135.9
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#2F511C
secondary
#6E4287
accent
#50D8A7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F511C

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

Preview Lab → · Contrast checker → · Palette generator →

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