#2F511B#2F511B

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

Color values

HEX#2F511B
RGBrgb(47, 81, 27)
HSLhsl(98, 50%, 21%)
HSVhsv(98, 67%, 32%)
CMYKcmyk(42%, 0%, 66.7%, 68.2%)
CIE-LABlab(30.80, -23.40, 27.25)
CIE-LCHlch(30.80, 35.92, 130.65°)
OKLaboklab(39.56% -0.0649 0.0634)
OKLCHoklch(39.56% 0.091 135.6)
XYZxyz(4.3124, 6.5681, 2.0772)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F511B #3D1B51
analogous
#4A511B #2F511B #1B5122
triadic
#2F511B #1B2F51 #511B2F
tetradic
#2F511B #1B4A51 #3D1B51 #51221B
square
#2F511B #1B4A51 #3D1B51 #51221B
split-complementary
#2F511B #221B51 #511B4A
monochromatic
#0D1708 #14230C #2F511B #4A7F2A #64AD3A

Accessibility & contrast

On white

9.08
#2F511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F511B
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F511B#FFFFFF#000000##FFFFFF
##2F511B1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A15
Deuteranopia (green-blind)
#4F471F
Tritanopia (blue-blind)
#2E4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f511b;
/* rgb */ color: rgb(47, 81, 27);
/* oklch */ color: oklch(39.6% 0.091 135.6);
Tailwind
colors: {
  custom: {
    50: '#6a825a',
    500: '#2f511b',
    950: '#000000',
  },
}
SCSS
$custom: #2f511b;
$custom-light: #6a825a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f511b",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 97.778,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.39555,
    "c": 0.09073,
    "h": 135.6
  },
  "luminance": 0.06568
}

Semantic roles & 50–950 ramp

primary
#2F511B
secondary
#6D4187
accent
#4EDAA6
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F511B

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

Preview Lab → · Contrast checker → · Palette generator →

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