#2B4F0C#2B4F0C

#2B4F0C is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.102 H 134.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2B4F0C
RGBrgb(43, 79, 12)
HSLhsl(92, 74%, 18%)
HSVhsv(92, 85%, 31%)
CMYKcmyk(45.6%, 0%, 84.8%, 69%)
CIE-LABlab(29.74, -25.33, 32.83)
CIE-LCHlch(29.74, 41.46, 127.65°)
OKLaboklab(38.59% -0.0711 0.0729)
OKLCHoklch(38.59% 0.102 134.3)
XYZxyz(3.8585, 6.1319, 1.3280)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F0C #300C4F
analogous
#4C4F0C #2B4F0C #0C4F0F
triadic
#2B4F0C #0C2B4F #4F0C2B
tetradic
#2B4F0C #0C4C4F #300C4F #4F0F0C
square
#2B4F0C #0C4C4F #300C4F #4F0F0C
split-complementary
#2B4F0C #0F0C4F #4F0C4C
monochromatic
#0E1B04 #0E1B04 #2B4F0C #488414 #65B91C

Accessibility & contrast

On white

9.43
#2B4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2B4F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F0C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F0C#FFFFFF#000000##FFFFFF
##2B4F0C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4E4513
Tritanopia (blue-blind)
#2B4C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b4f0c;
/* rgb */ color: rgb(43, 79, 12);
/* oklch */ color: oklch(38.6% 0.102 134.3);
Tailwind
colors: {
  custom: {
    50: '#688051',
    500: '#2b4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f0c;
$custom-light: #688051;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f0c",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 92.239,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.10182,
    "h": 134.3
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#2B4F0C
secondary
#5F2C8B
accent
#38F09B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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