#2B4F0B#2B4F0B

#2B4F0B is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.102 H 134.1°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2B4F0B
RGBrgb(43, 79, 11)
HSLhsl(92, 76%, 18%)
HSVhsv(92, 86%, 31%)
CMYKcmyk(45.6%, 0%, 86.1%, 69%)
CIE-LABlab(29.74, -25.39, 33.18)
CIE-LCHlch(29.74, 41.78, 127.42°)
OKLaboklab(38.58% -0.0713 0.0735)
OKLCHoklch(38.58% 0.102 134.1)
XYZxyz(3.8526, 6.1295, 1.2967)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F0B #2F0B4F
analogous
#4D4F0B #2B4F0B #0B4F0D
triadic
#2B4F0B #0B2B4F #4F0B2B
tetradic
#2B4F0B #0B4D4F #2F0B4F #4F0D0B
square
#2B4F0B #0B4D4F #2F0B4F #4F0D0B
split-complementary
#2B4F0B #0D0B4F #4F0B4D
monochromatic
#0F1B04 #0F1B04 #2B4F0B #488512 #65BA1A

Accessibility & contrast

On white

9.43
#2B4F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2B4F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4F0B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F0B#FFFFFF#000000##FFFFFF
##2B4F0B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4E4513
Tritanopia (blue-blind)
#2B4C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b4f0b;
/* rgb */ color: rgb(43, 79, 11);
/* oklch */ color: oklch(38.6% 0.102 134.1);
Tailwind
colors: {
  custom: {
    50: '#688051',
    500: '#2b4f0b',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f0b;
$custom-light: #688051;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f0b",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 11
  },
  "hsl": {
    "h": 91.765,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.38581,
    "c": 0.10241,
    "h": 134.1
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#2B4F0B
secondary
#5E2B8B
accent
#36F299
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B4F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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