#2B4D0C#2B4D0C

#2B4D0C is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.099 H 133.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2B4D0C
RGBrgb(43, 77, 12)
HSLhsl(91, 73%, 17%)
HSVhsv(91, 84%, 30%)
CMYKcmyk(44.2%, 0%, 84.4%, 69.8%)
CIE-LABlab(29.02, -24.37, 32.15)
CIE-LCHlch(29.02, 40.34, 127.16°)
OKLaboklab(38% -0.0685 0.0715)
OKLCHoklch(38% 0.099 133.8)
XYZxyz(3.7164, 5.8477, 1.2807)
Luminance0.0585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4D0C #2E0C4D
analogous
#4B4D0C #2B4D0C #0C4D0E
triadic
#2B4D0C #0C2B4D #4D0C2B
tetradic
#2B4D0C #0C4B4D #2E0C4D #4D0E0C
square
#2B4D0C #0C4B4D #2E0C4D #4D0E0C
split-complementary
#2B4D0C #0E0C4D #4D0C4B
monochromatic
#0F1A04 #0F1A04 #2B4D0C #498214 #66B71D

Accessibility & contrast

On white

9.68
#2B4D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2B4D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4D0C
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4D0C#FFFFFF#000000##FFFFFF
##2B4D0C1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504601
Deuteranopia (green-blind)
#4C4313
Tritanopia (blue-blind)
#2B4A41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b4d0c;
/* rgb */ color: rgb(43, 77, 12);
/* oklch */ color: oklch(38.0% 0.099 133.8);
Tailwind
colors: {
  custom: {
    50: '#687f51',
    500: '#2b4d0c',
    950: '#000000',
  },
}
SCSS
$custom: #2b4d0c;
$custom-light: #687f51;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4d0c",
  "rgb": {
    "r": 43,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 91.385,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37999,
    "c": 0.099,
    "h": 133.8
  },
  "luminance": 0.05848
}

Semantic roles & 50–950 ramp

primary
#2B4D0C
secondary
#5D2C89
accent
#38F098
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B4D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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