#2B400C#2B400C

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

Color values

HEX#2B400C
RGBrgb(43, 64, 12)
HSLhsl(84, 68%, 15%)
HSVhsv(84, 81%, 25%)
CMYKcmyk(32.8%, 0%, 81.2%, 74.9%)
CIE-LABlab(24.34, -17.73, 27.57)
CIE-LCHlch(24.34, 32.78, 122.74°)
OKLaboklab(34.18% -0.0505 0.0619)
OKLCHoklch(34.18% 0.08 129.2)
XYZxyz(2.8960, 4.2068, 1.0072)
Luminance0.0421 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B400C #210C40
analogous
#403B0C #2B400C #11400C
triadic
#2B400C #0C2B40 #400C2B
tetradic
#2B400C #0C403B #210C40 #400C11
square
#2B400C #0C403B #210C40 #400C11
split-complementary
#2B400C #0C1140 #3B0C40
monochromatic
#111A05 #111A05 #2B400C #4E7416 #70A71F

Accessibility & contrast

On white

11.40
#2B400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B400C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B400C#FFFFFF#000000##FFFFFF
##2B400C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b400c;
/* rgb */ color: rgb(43, 64, 12);
/* oklch */ color: oklch(34.2% 0.080 129.2);
Tailwind
colors: {
  custom: {
    50: '#67754f',
    500: '#2b400c',
    950: '#000000',
  },
}
SCSS
$custom: #2b400c;
$custom-light: #67754f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b400c",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 84.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34179,
    "c": 0.0799,
    "h": 129.2
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#2B400C
secondary
#4C2C7C
accent
#3DEB83
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B400C

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

Preview Lab → · Contrast checker → · Palette generator →

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