#2B400B#2B400B

#2B400B is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.2% C 0.081 H 129.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2B400B
RGBrgb(43, 64, 11)
HSLhsl(84, 71%, 15%)
HSVhsv(84, 83%, 25%)
CMYKcmyk(32.8%, 0%, 82.8%, 74.9%)
CIE-LABlab(24.34, -17.80, 28.00)
CIE-LCHlch(24.34, 33.18, 122.45°)
OKLaboklab(34.17% -0.0508 0.0626)
OKLCHoklch(34.17% 0.081 129)
XYZxyz(2.8901, 4.2045, 0.9758)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B400B #200B40
analogous
#403B0B #2B400B #10400B
triadic
#2B400B #0B2B40 #400B2B
tetradic
#2B400B #0B403B #200B40 #400B10
square
#2B400B #0B403B #200B40 #400B10
split-complementary
#2B400B #0B1040 #3B0B40
monochromatic
#121A04 #121A04 #2B400B #4E7414 #71A81D

Accessibility & contrast

On white

11.41
#2B400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B400B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B400B
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B400B#FFFFFF#000000##FFFFFF
##2B400B1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B03
Deuteranopia (green-blind)
#413910
Tritanopia (blue-blind)
#2D3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b400b;
/* rgb */ color: rgb(43, 64, 11);
/* oklch */ color: oklch(34.2% 0.081 129.0);
Tailwind
colors: {
  custom: {
    50: '#67754e',
    500: '#2b400b',
    950: '#000000',
  },
}
SCSS
$custom: #2b400b;
$custom-light: #67754e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b400b",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 83.774,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34171,
    "c": 0.08064,
    "h": 129
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#2B400B
secondary
#4B2A7D
accent
#3AED81
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B400B

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

Preview Lab → · Contrast checker → · Palette generator →

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