#2B4E17#2B4E17

#2B4E17 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.092 H 136.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2B4E17
RGBrgb(43, 78, 23)
HSLhsl(98, 54%, 20%)
HSVhsv(98, 71%, 31%)
CMYKcmyk(44.9%, 0%, 70.5%, 69.4%)
CIE-LABlab(29.47, -23.91, 27.75)
CIE-LCHlch(29.47, 36.63, 130.76°)
OKLaboklab(38.4% -0.0663 0.064)
OKLCHoklch(38.4% 0.092 136)
XYZxyz(3.8752, 6.0240, 1.7690)
Luminance0.0602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4E17 #3A174E
analogous
#464E17 #2B4E17 #174E1F
triadic
#2B4E17 #172B4E #4E172B
tetradic
#2B4E17 #17464E #3A174E #4E1F17
square
#2B4E17 #17464E #3A174E #4E1F17
split-complementary
#2B4E17 #1F174E #4E1746
monochromatic
#0D1807 #111F09 #2B4E17 #457D25 #5FAD33

Accessibility & contrast

On white

9.52
#2B4E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2B4E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4E17
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4E17#FFFFFF#000000##FFFFFF
##2B4E171.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514710
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#2A4B43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b4e17;
/* rgb */ color: rgb(43, 78, 23);
/* oklch */ color: oklch(38.4% 0.092 136.0);
Tailwind
colors: {
  custom: {
    50: '#688057',
    500: '#2b4e17',
    950: '#000000',
  },
}
SCSS
$custom: #2b4e17;
$custom-light: #688057;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4e17",
  "rgb": {
    "r": 43,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 98.182,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38395,
    "c": 0.09218,
    "h": 136
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#2B4E17
secondary
#6A3C85
accent
#4ADEA8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B4E17

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

Preview Lab → · Contrast checker → · Palette generator →

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