#2B4E12#2B4E12

#2B4E12 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.096 H 135.0°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2B4E12
RGBrgb(43, 78, 18)
HSLhsl(95, 63%, 19%)
HSVhsv(95, 77%, 31%)
CMYKcmyk(44.9%, 0%, 76.9%, 69.4%)
CIE-LABlab(29.43, -24.39, 30.06)
CIE-LCHlch(29.43, 38.72, 129.05°)
OKLaboklab(38.34% -0.0681 0.0682)
OKLCHoklch(38.34% 0.096 135)
XYZxyz(3.8297, 6.0058, 1.5296)
Luminance0.0601 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E12 #35124E
analogous
#494E12 #2B4E12 #124E17
triadic
#2B4E12 #122B4E #4E122B
tetradic
#2B4E12 #12494E #35124E #4E1712
square
#2B4E12 #12494E #35124E #4E1712
split-complementary
#2B4E12 #17124E #4E1249
monochromatic
#0E1906 #101C07 #2B4E12 #46801D #62B129

Accessibility & contrast

On white

9.54
#2B4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2B4E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4E12
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4E12#FFFFFF#000000##FFFFFF
##2B4E121.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#2A4B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b4e12;
/* rgb */ color: rgb(43, 78, 18);
/* oklch */ color: oklch(38.3% 0.096 135.0);
Tailwind
colors: {
  custom: {
    50: '#688054',
    500: '#2b4e12',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e12;
$custom-light: #688054;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e12",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 95,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38343,
    "c": 0.09632,
    "h": 135
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#2B4E12
secondary
#653587
accent
#42E6A2
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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