#2B4F12#2B4F12

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

Color values

HEX#2B4F12
RGBrgb(43, 79, 18)
HSLhsl(95, 63%, 19%)
HSVhsv(95, 77%, 31%)
CMYKcmyk(45.6%, 0%, 77.2%, 69%)
CIE-LABlab(29.79, -24.88, 30.43)
CIE-LCHlch(29.79, 39.30, 129.26°)
OKLaboklab(38.64% -0.0694 0.0689)
OKLCHoklch(38.64% 0.098 135.2)
XYZxyz(3.9013, 6.1490, 1.5535)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F12 #36124F
analogous
#4A4F12 #2B4F12 #124F18
triadic
#2B4F12 #122B4F #4F122B
tetradic
#2B4F12 #124A4F #36124F #4F1812
square
#2B4F12 #124A4F #36124F #4F1812
split-complementary
#2B4F12 #18124F #4F124A
monochromatic
#0E1906 #101D07 #2B4F12 #46811D #61B329

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B4F12#FFFFFF#000000##FFFFFF
##2B4F121.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)
#524808
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#2A4C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b4f12;
/* rgb */ color: rgb(43, 79, 18);
/* oklch */ color: oklch(38.6% 0.098 135.2);
Tailwind
colors: {
  custom: {
    50: '#688054',
    500: '#2b4f12',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f12;
$custom-light: #688054;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f12",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 95.41,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38636,
    "c": 0.09779,
    "h": 135.2
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#2B4F12
secondary
#663588
accent
#42E6A3
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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