#2B4A0F#2B4A0F

#2B4A0F is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.093 H 133.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2B4A0F
RGBrgb(43, 74, 15)
HSLhsl(92, 66%, 17%)
HSVhsv(92, 80%, 29%)
CMYKcmyk(41.9%, 0%, 79.7%, 71%)
CIE-LABlab(27.97, -22.68, 29.90)
CIE-LCHlch(27.97, 37.53, 127.18°)
OKLaboklab(37.14% -0.0637 0.0673)
OKLCHoklch(37.14% 0.093 133.4)
XYZxyz(3.5312, 5.4455, 1.3169)
Luminance0.0545 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4A0F #2E0F4A
analogous
#494A0F #2B4A0F #0F4A10
triadic
#2B4A0F #0F2B4A #4A0F2B
tetradic
#2B4A0F #0F494A #2E0F4A #4A100F
square
#2B4A0F #0F494A #2E0F4A #4A100F
split-complementary
#2B4A0F #100F4A #4A0F49
monochromatic
#0F1905 #0F1905 #2B4A0F #497D19 #66B024

Accessibility & contrast

On white

10.05
#2B4A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2B4A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4A0F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4A0F#FFFFFF#000000##FFFFFF
##2B4A0F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4405
Deuteranopia (green-blind)
#494115
Tritanopia (blue-blind)
#2B473E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b4a0f;
/* rgb */ color: rgb(43, 74, 15);
/* oklch */ color: oklch(37.1% 0.093 133.4);
Tailwind
colors: {
  custom: {
    50: '#687d52',
    500: '#2b4a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b4a0f;
$custom-light: #687d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4a0f",
  "rgb": {
    "r": 43,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 91.525,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37141,
    "c": 0.09265,
    "h": 133.4
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#2B4A0F
secondary
#5D3084
accent
#3FE998
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2B4A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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