#2B4107#2B4107

#2B4107 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.085 H 128.9°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2B4107
RGBrgb(43, 65, 7)
HSLhsl(83, 81%, 14%)
HSVhsv(83, 89%, 25%)
CMYKcmyk(33.8%, 0%, 89.2%, 74.5%)
CIE-LABlab(24.67, -18.61, 29.96)
CIE-LCHlch(24.67, 35.27, 121.85°)
OKLaboklab(34.43% -0.0534 0.066)
OKLCHoklch(34.43% 0.085 128.9)
XYZxyz(2.9249, 4.3094, 0.8787)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4107 #1D0741
analogous
#413A07 #2B4107 #0E4107
triadic
#2B4107 #072B41 #41072B
tetradic
#2B4107 #07413A #1D0741 #41070E
square
#2B4107 #07413A #1D0741 #41070E
split-complementary
#2B4107 #070E41 #3A0741
monochromatic
#121C03 #121C03 #2B4107 #50780D #74B013

Accessibility & contrast

On white

11.28
#2B4107 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B4107 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4107
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4107#FFFFFF#000000##FFFFFF
##2B41071.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#423A0D
Tritanopia (blue-blind)
#2D3E36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b4107;
/* rgb */ color: rgb(43, 65, 7);
/* oklch */ color: oklch(34.4% 0.085 128.9);
Tailwind
colors: {
  custom: {
    50: '#67754c',
    500: '#2b4107',
    950: '#000000',
  },
}
SCSS
$custom: #2b4107;
$custom-light: #67754c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4107",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 7
  },
  "hsl": {
    "h": 82.759,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.0849,
    "h": 128.9
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#2B4107
secondary
#472480
accent
#31F77C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2B4107

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

Preview Lab → · Contrast checker → · Palette generator →

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