#2B4C12#2B4C12

#2B4C12 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.093 H 134.5°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2B4C12
RGBrgb(43, 76, 18)
HSLhsl(94, 62%, 18%)
HSVhsv(94, 76%, 30%)
CMYKcmyk(43.4%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.71, -23.42, 29.32)
CIE-LCHlch(28.71, 37.53, 128.61°)
OKLaboklab(37.76% -0.0654 0.0666)
OKLCHoklch(37.76% 0.093 134.5)
XYZxyz(3.6898, 5.7260, 1.4830)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4C12 #33124C
analogous
#484C12 #2B4C12 #124C16
triadic
#2B4C12 #122B4C #4C122B
tetradic
#2B4C12 #12484C #33124C #4C1612
square
#2B4C12 #12484C #33124C #4C1612
split-complementary
#2B4C12 #16124C #4C1248
monochromatic
#0E1906 #0F1B06 #2B4C12 #477D1E #63AF29

Accessibility & contrast

On white

9.79
#2B4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2B4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4C12
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4C12#FFFFFF#000000##FFFFFF
##2B4C121.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4509
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#2B4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b4c12;
/* rgb */ color: rgb(43, 76, 18);
/* oklch */ color: oklch(37.8% 0.093 134.5);
Tailwind
colors: {
  custom: {
    50: '#687e54',
    500: '#2b4c12',
    950: '#000000',
  },
}
SCSS
$custom: #2b4c12;
$custom-light: #687e54;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4c12",
  "rgb": {
    "r": 43,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 94.138,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37756,
    "c": 0.09335,
    "h": 134.5
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#2B4C12
secondary
#623585
accent
#43E59F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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