#2B4F11#2B4F11

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

Color values

HEX#2B4F11
RGBrgb(43, 79, 17)
HSLhsl(95, 65%, 19%)
HSVhsv(95, 78%, 31%)
CMYKcmyk(45.6%, 0%, 78.5%, 69%)
CIE-LABlab(29.78, -24.96, 30.86)
CIE-LCHlch(29.78, 39.69, 128.96°)
OKLaboklab(38.63% -0.0697 0.0697)
OKLCHoklch(38.63% 0.099 135)
XYZxyz(3.8933, 6.1458, 1.5113)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F11 #35114F
analogous
#4A4F11 #2B4F11 #114F16
triadic
#2B4F11 #112B4F #4F112B
tetradic
#2B4F11 #114A4F #35114F #4F1611
square
#2B4F11 #114A4F #35114F #4F1611
split-complementary
#2B4F11 #16114F #4F114A
monochromatic
#0E1905 #101D06 #2B4F11 #46811C #62B427

Accessibility & contrast

On white

9.42
#2B4F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4F11
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F11#FFFFFF#000000##FFFFFF
##2B4F111.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524807
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#2A4C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b4f11;
/* rgb */ color: rgb(43, 79, 17);
/* oklch */ color: oklch(38.6% 0.099 135.0);
Tailwind
colors: {
  custom: {
    50: '#688053',
    500: '#2b4f11',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f11;
$custom-light: #688053;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f11",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 94.839,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.09853,
    "h": 135
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#2B4F11
secondary
#653388
accent
#40E8A1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B4F11

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

Preview Lab → · Contrast checker → · Palette generator →

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