#2B3812#2B3812

#2B3812 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 31.9% C 0.062 H 125.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2B3812
RGBrgb(43, 56, 18)
HSLhsl(81, 51%, 15%)
HSVhsv(81, 68%, 22%)
CMYKcmyk(23.2%, 0%, 67.9%, 78%)
CIE-LABlab(21.53, -12.67, 21.56)
CIE-LCHlch(21.53, 25.00, 120.44°)
OKLaboklab(31.92% -0.0359 0.0502)
OKLCHoklch(31.92% 0.062 125.6)
XYZxyz(2.5196, 3.3856, 1.0929)
Luminance0.0339 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3812 #1F1238
analogous
#383212 #2B3812 #183812
triadic
#2B3812 #122B38 #38122B
tetradic
#2B3812 #123832 #1F1238 #381218
square
#2B3812 #123832 #1F1238 #381218
split-complementary
#2B3812 #121838 #321238
monochromatic
#121707 #121707 #2B3812 #4F6621 #729530

Accessibility & contrast

On white

12.52
#2B3812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B3812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3812
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3812#FFFFFF#000000##FFFFFF
##2B38121.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B340E
Deuteranopia (green-blind)
#393315
Tritanopia (blue-blind)
#2D3530
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b3812;
/* rgb */ color: rgb(43, 56, 18);
/* oklch */ color: oklch(31.9% 0.062 125.6);
Tailwind
colors: {
  custom: {
    50: '#656e51',
    500: '#2b3812',
    950: '#000000',
  },
}
SCSS
$custom: #2b3812;
$custom-light: #656e51;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3812",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 18
  },
  "hsl": {
    "h": 80.526,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.31915,
    "c": 0.06171,
    "h": 125.6
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#2B3812
secondary
#493571
accent
#4DDB7E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2B3812

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

Preview Lab → · Contrast checker → · Palette generator →

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