#2B4D0F#2B4D0F

#2B4D0F is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.0% C 0.097 H 134.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2B4D0F
RGBrgb(43, 77, 15)
HSLhsl(93, 67%, 18%)
HSVhsv(93, 81%, 30%)
CMYKcmyk(44.2%, 0%, 80.5%, 69.8%)
CIE-LABlab(29.05, -24.15, 30.98)
CIE-LCHlch(29.05, 39.28, 127.94°)
OKLaboklab(38.02% -0.0677 0.0696)
OKLCHoklch(38.02% 0.097 134.2)
XYZxyz(3.7363, 5.8556, 1.3852)
Luminance0.0586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4D0F #310F4D
analogous
#4A4D0F #2B4D0F #0F4D12
triadic
#2B4D0F #0F2B4D #4D0F2B
tetradic
#2B4D0F #0F4A4D #310F4D #4D120F
square
#2B4D0F #0F4A4D #310F4D #4D120F
split-complementary
#2B4D0F #120F4D #4D0F4A
monochromatic
#0E1A05 #0E1A05 #2B4D0F #488019 #64B323

Accessibility & contrast

On white

9.67
#2B4D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4D0F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4D0F#FFFFFF#000000##FFFFFF
##2B4D0F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b4d0f;
/* rgb */ color: rgb(43, 77, 15);
/* oklch */ color: oklch(38.0% 0.097 134.2);
Tailwind
colors: {
  custom: {
    50: '#687f52',
    500: '#2b4d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b4d0f;
$custom-light: #687f52;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4d0f",
  "rgb": {
    "r": 43,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 92.903,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38023,
    "c": 0.09704,
    "h": 134.2
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#2B4D0F
secondary
#603187
accent
#3EEA9C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B4D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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