#2B450F#2B450F

#2B450F is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.7% C 0.085 H 131.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2B450F
RGBrgb(43, 69, 15)
HSLhsl(89, 64%, 16%)
HSVhsv(89, 78%, 27%)
CMYKcmyk(37.7%, 0%, 78.3%, 72.9%)
CIE-LABlab(26.17, -20.14, 28.07)
CIE-LCHlch(26.17, 34.55, 125.65°)
OKLaboklab(35.67% -0.0568 0.0635)
OKLCHoklch(35.67% 0.085 131.8)
XYZxyz(3.2106, 4.8042, 1.2100)
Luminance0.0480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B450F #290F45
analogous
#45440F #2B450F #10450F
triadic
#2B450F #0F2B45 #450F2B
tetradic
#2B450F #0F4544 #290F45 #450F10
square
#2B450F #0F4544 #290F45 #450F10
split-complementary
#2B450F #0F1045 #440F45
monochromatic
#101905 #101905 #2B450F #4A771A #6AAA25

Accessibility & contrast

On white

10.71
#2B450F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2B450F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B450F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B450F#FFFFFF#000000##FFFFFF
##2B450F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F07
Deuteranopia (green-blind)
#453D14
Tritanopia (blue-blind)
#2C423A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b450f;
/* rgb */ color: rgb(43, 69, 15);
/* oklch */ color: oklch(35.7% 0.085 131.8);
Tailwind
colors: {
  custom: {
    50: '#677951',
    500: '#2b450f',
    950: '#000000',
  },
}
SCSS
$custom: #2b450f;
$custom-light: #677951;
$custom-dark: #000000;
JSON
{
  "hex": "#2b450f",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 15
  },
  "hsl": {
    "h": 88.889,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35673,
    "c": 0.08516,
    "h": 131.8
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#2B450F
secondary
#56307F
accent
#41E791
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2B450F

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

Preview Lab → · Contrast checker → · Palette generator →

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