#2B4F18#2B4F18

#2B4F18 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.7% C 0.093 H 136.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2B4F18
RGBrgb(43, 79, 24)
HSLhsl(99, 53%, 20%)
HSVhsv(99, 70%, 31%)
CMYKcmyk(45.6%, 0%, 69.6%, 69%)
CIE-LABlab(29.84, -24.30, 27.65)
CIE-LCHlch(29.84, 36.81, 131.31°)
OKLaboklab(38.7% -0.0673 0.0639)
OKLCHoklch(38.7% 0.093 136.5)
XYZxyz(3.9570, 6.1713, 1.8467)
Luminance0.0617 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4F18 #3C184F
analogous
#464F18 #2B4F18 #184F21
triadic
#2B4F18 #182B4F #4F182B
tetradic
#2B4F18 #18464F #3C184F #4F2118
square
#2B4F18 #18464F #3C184F #4F2118
split-complementary
#2B4F18 #21184F #4F1846
monochromatic
#0D1707 #11200A #2B4F18 #457E26 #5EAD35

Accessibility & contrast

On white

9.40
#2B4F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4F18
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4F18#FFFFFF#000000##FFFFFF
##2B4F181.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b4f18;
/* rgb */ color: rgb(43, 79, 24);
/* oklch */ color: oklch(38.7% 0.093 136.5);
Tailwind
colors: {
  custom: {
    50: '#688058',
    500: '#2b4f18',
    950: '#000000',
  },
}
SCSS
$custom: #2b4f18;
$custom-light: #688058;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4f18",
  "rgb": {
    "r": 43,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 99.273,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38699,
    "c": 0.09282,
    "h": 136.5
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#2B4F18
secondary
#6D3D86
accent
#4BDDAA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B4F18

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

Preview Lab → · Contrast checker → · Palette generator →

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