#2B4212#2B4212

#2B4212 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.8% C 0.078 H 131.3°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2B4212
RGBrgb(43, 66, 18)
HSLhsl(89, 57%, 16%)
HSVhsv(89, 73%, 26%)
CMYKcmyk(34.8%, 0%, 72.7%, 74.1%)
CIE-LABlab(25.12, -18.28, 25.52)
CIE-LCHlch(25.12, 31.40, 125.61°)
OKLaboklab(34.83% -0.0514 0.0586)
OKLCHoklch(34.83% 0.078 131.3)
XYZxyz(3.0536, 4.4536, 1.2709)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4212 #291242
analogous
#424112 #2B4212 #134212
triadic
#2B4212 #122B42 #42122B
tetradic
#2B4212 #124241 #291242 #421213
square
#2B4212 #124241 #291242 #421213
split-complementary
#2B4212 #121342 #411242
monochromatic
#101807 #101807 #2B4212 #4A721F #6AA22C

Accessibility & contrast

On white

11.11
#2B4212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2B4212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4212
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4212#FFFFFF#000000##FFFFFF
##2B42121.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D0C
Deuteranopia (green-blind)
#423B16
Tritanopia (blue-blind)
#2C3F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b4212;
/* rgb */ color: rgb(43, 66, 18);
/* oklch */ color: oklch(34.8% 0.078 131.3);
Tailwind
colors: {
  custom: {
    50: '#667652',
    500: '#2b4212',
    950: '#000000',
  },
}
SCSS
$custom: #2b4212;
$custom-light: #667652;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4212",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 88.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.34826,
    "c": 0.07796,
    "h": 131.3
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#2B4212
secondary
#56357B
accent
#47E091
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B4212

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

Preview Lab → · Contrast checker → · Palette generator →

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