#2B4A12#2B4A12

#2B4A12 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.2% C 0.090 H 134.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2B4A12
RGBrgb(43, 74, 18)
HSLhsl(93, 61%, 18%)
HSVhsv(93, 76%, 29%)
CMYKcmyk(41.9%, 0%, 75.7%, 71%)
CIE-LABlab(27.99, -22.42, 28.58)
CIE-LCHlch(27.99, 36.33, 128.12°)
OKLaboklab(37.17% -0.0627 0.065)
OKLCHoklch(37.17% 0.09 134)
XYZxyz(3.5542, 5.4547, 1.4377)
Luminance0.0546 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4A12 #31124A
analogous
#474A12 #2B4A12 #124A15
triadic
#2B4A12 #122B4A #4A122B
tetradic
#2B4A12 #12474A #31124A #4A1512
square
#2B4A12 #12474A #31124A #4A1512
split-complementary
#2B4A12 #15124A #4A1247
monochromatic
#0E1906 #0E1906 #2B4A12 #487B1E #64AC2A

Accessibility & contrast

On white

10.04
#2B4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2B4A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4A12
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4A12#FFFFFF#000000##FFFFFF
##2B4A121.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D440A
Deuteranopia (green-blind)
#494117
Tritanopia (blue-blind)
#2B473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b4a12;
/* rgb */ color: rgb(43, 74, 18);
/* oklch */ color: oklch(37.2% 0.090 134.0);
Tailwind
colors: {
  custom: {
    50: '#677d53',
    500: '#2b4a12',
    950: '#000000',
  },
}
SCSS
$custom: #2b4a12;
$custom-light: #677d53;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4a12",
  "rgb": {
    "r": 43,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 93.214,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37169,
    "c": 0.09034,
    "h": 134
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#2B4A12
secondary
#603583
accent
#44E49C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2B4A12

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

Preview Lab → · Contrast checker → · Palette generator →

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