#2B4B0F#2B4B0F

#2B4B0F is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.094 H 133.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2B4B0F
RGBrgb(43, 75, 15)
HSLhsl(92, 67%, 18%)
HSVhsv(92, 80%, 29%)
CMYKcmyk(42.7%, 0%, 80%, 70.6%)
CIE-LABlab(28.33, -23.17, 30.26)
CIE-LCHlch(28.33, 38.11, 127.45°)
OKLaboklab(37.44% -0.065 0.0681)
OKLCHoklch(37.44% 0.094 133.7)
XYZxyz(3.5985, 5.5801, 1.3393)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4B0F #2F0F4B
analogous
#494B0F #2B4B0F #0F4B11
triadic
#2B4B0F #0F2B4B #4B0F2B
tetradic
#2B4B0F #0F494B #2F0F4B #4B110F
square
#2B4B0F #0F494B #2F0F4B #4B110F
split-complementary
#2B4B0F #110F4B #4B0F49
monochromatic
#0F1A05 #0F1A05 #2B4B0F #487E19 #65B123

Accessibility & contrast

On white

9.92
#2B4B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B4B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4B0F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4B0F#FFFFFF#000000##FFFFFF
##2B4B0F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4405
Deuteranopia (green-blind)
#4A4215
Tritanopia (blue-blind)
#2B483F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b4b0f;
/* rgb */ color: rgb(43, 75, 15);
/* oklch */ color: oklch(37.4% 0.094 133.7);
Tailwind
colors: {
  custom: {
    50: '#687d52',
    500: '#2b4b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b4b0f;
$custom-light: #687d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4b0f",
  "rgb": {
    "r": 43,
    "g": 75,
    "b": 15
  },
  "hsl": {
    "h": 92,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.09413,
    "h": 133.7
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#2B4B0F
secondary
#5E3085
accent
#3EEA9A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2B4B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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