#2B400F#2B400F

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

Color values

HEX#2B400F
RGBrgb(43, 64, 15)
HSLhsl(86, 62%, 15%)
HSVhsv(86, 77%, 25%)
CMYKcmyk(32.8%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.37, -17.48, 26.21)
CIE-LCHlch(24.37, 31.51, 123.70°)
OKLaboklab(34.21% -0.0495 0.0596)
OKLCHoklch(34.21% 0.077 129.7)
XYZxyz(2.9159, 4.2148, 1.1118)
Luminance0.0421 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B400F #240F40
analogous
#403C0F #2B400F #13400F
triadic
#2B400F #0F2B40 #400F2B
tetradic
#2B400F #0F403C #240F40 #400F13
square
#2B400F #0F403C #240F40 #400F13
split-complementary
#2B400F #0F1340 #3C0F40
monochromatic
#111906 #111906 #2B400F #4C721B #6EA326

Accessibility & contrast

On white

11.39
#2B400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B400F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B400F#FFFFFF#000000##FFFFFF
##2B400F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B08
Deuteranopia (green-blind)
#403913
Tritanopia (blue-blind)
#2C3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b400f;
/* rgb */ color: rgb(43, 64, 15);
/* oklch */ color: oklch(34.2% 0.077 129.7);
Tailwind
colors: {
  custom: {
    50: '#667550',
    500: '#2b400f',
    950: '#000000',
  },
}
SCSS
$custom: #2b400f;
$custom-light: #667550;
$custom-dark: #000000;
JSON
{
  "hex": "#2b400f",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 85.714,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34208,
    "c": 0.07747,
    "h": 129.7
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#2B400F
secondary
#50307A
accent
#43E588
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B400F

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

Preview Lab → · Contrast checker → · Palette generator →

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