#2B4017#2B4017

#2B4017 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.3% C 0.070 H 131.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2B4017
RGBrgb(43, 64, 23)
HSLhsl(91, 47%, 17%)
HSVhsv(91, 64%, 25%)
CMYKcmyk(32.8%, 0%, 64.1%, 74.9%)
CIE-LABlab(24.46, -16.64, 22.11)
CIE-LCHlch(24.46, 27.67, 126.97°)
OKLaboklab(34.31% -0.0464 0.052)
OKLCHoklch(34.31% 0.07 131.8)
XYZxyz(2.9843, 4.2422, 1.4720)
Luminance0.0424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4017 #2C1740
analogous
#404017 #2B4017 #174018
triadic
#2B4017 #172B40 #40172B
tetradic
#2B4017 #174040 #2C1740 #401817
square
#2B4017 #174040 #2C1740 #401817
split-complementary
#2B4017 #181740 #401740
monochromatic
#0F1708 #0F1708 #2B4017 #496D27 #679A37

Accessibility & contrast

On white

11.36
#2B4017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B4017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4017
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4017#FFFFFF#000000##FFFFFF
##2B40171.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B13
Deuteranopia (green-blind)
#403A1A
Tritanopia (blue-blind)
#2C3D37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b4017;
/* rgb */ color: rgb(43, 64, 23);
/* oklch */ color: oklch(34.3% 0.070 131.8);
Tailwind
colors: {
  custom: {
    50: '#667555',
    500: '#2b4017',
    950: '#000000',
  },
}
SCSS
$custom: #2b4017;
$custom-light: #667555;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4017",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 23
  },
  "hsl": {
    "h": 90.732,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.06968,
    "h": 131.8
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#2B4017
secondary
#5A3C77
accent
#51D796
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2B4017

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

Preview Lab → · Contrast checker → · Palette generator →

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