#2B4012#2B4012

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

Color values

HEX#2B4012
RGBrgb(43, 64, 18)
HSLhsl(87, 56%, 16%)
HSVhsv(87, 72%, 25%)
CMYKcmyk(32.8%, 0%, 71.9%, 74.9%)
CIE-LABlab(24.40, -17.20, 24.75)
CIE-LCHlch(24.40, 30.14, 124.80°)
OKLaboklab(34.24% -0.0484 0.057)
OKLCHoklch(34.24% 0.075 130.4)
XYZxyz(2.9388, 4.2240, 1.2326)
Luminance0.0422 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4012 #271240
analogous
#403E12 #2B4012 #144012
triadic
#2B4012 #122B40 #40122B
tetradic
#2B4012 #12403E #271240 #401214
square
#2B4012 #12403E #271240 #401214
split-complementary
#2B4012 #121440 #3E1240
monochromatic
#101807 #101807 #2B4012 #4B701F #6BA02D

Accessibility & contrast

On white

11.38
#2B4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4012
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4012#FFFFFF#000000##FFFFFF
##2B40121.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b4012;
/* rgb */ color: rgb(43, 64, 18);
/* oklch */ color: oklch(34.2% 0.075 130.4);
Tailwind
colors: {
  custom: {
    50: '#667552',
    500: '#2b4012',
    950: '#000000',
  },
}
SCSS
$custom: #2b4012;
$custom-light: #667552;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4012",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 87.391,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.07477,
    "h": 130.4
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#2B4012
secondary
#543579
accent
#48DF8D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B4012

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

Preview Lab → · Contrast checker → · Palette generator →

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