#2B4007#2B4007

#2B4007 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.083 H 128.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B4007
RGBrgb(43, 64, 7)
HSLhsl(82, 80%, 14%)
HSVhsv(82, 89%, 25%)
CMYKcmyk(32.8%, 0%, 89.1%, 74.9%)
CIE-LABlab(24.31, -18.08, 29.61)
CIE-LCHlch(24.31, 34.70, 121.40°)
OKLaboklab(34.14% -0.0519 0.0653)
OKLCHoklch(34.14% 0.083 128.5)
XYZxyz(2.8680, 4.1956, 0.8597)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4007 #1C0740
analogous
#403907 #2B4007 #0F4007
triadic
#2B4007 #072B40 #40072B
tetradic
#2B4007 #074039 #1C0740 #40070F
square
#2B4007 #074039 #1C0740 #40070F
split-complementary
#2B4007 #070F40 #390740
monochromatic
#131C03 #131C03 #2B4007 #50770D #75AE13

Accessibility & contrast

On white

11.42
#2B4007 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B4007 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4007
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4007#FFFFFF#000000##FFFFFF
##2B40071.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#41390D
Tritanopia (blue-blind)
#2D3D35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b4007;
/* rgb */ color: rgb(43, 64, 7);
/* oklch */ color: oklch(34.1% 0.083 128.5);
Tailwind
colors: {
  custom: {
    50: '#67754c',
    500: '#2b4007',
    950: '#000000',
  },
}
SCSS
$custom: #2b4007;
$custom-light: #67754c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4007",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 7
  },
  "hsl": {
    "h": 82.105,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.34139,
    "c": 0.08344,
    "h": 128.5
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#2B4007
secondary
#45247F
accent
#31F77A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2B4007

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

Preview Lab → · Contrast checker → · Palette generator →

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