#2B6217#2B6217

#2B6217 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.2% C 0.121 H 138.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2B6217
RGBrgb(43, 98, 23)
HSLhsl(104, 62%, 24%)
HSVhsv(104, 77%, 38%)
CMYKcmyk(56.1%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.58, -33.01, 35.23)
CIE-LCHlch(36.58, 48.27, 133.14°)
OKLaboklab(44.23% -0.091 0.0797)
OKLCHoklch(44.23% 0.121 138.8)
XYZxyz(5.5184, 9.3104, 2.3167)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6217 #4E1762
analogous
#506217 #2B6217 #176228
triadic
#2B6217 #172B62 #62172B
tetradic
#2B6217 #175062 #4E1762 #622817
square
#2B6217 #175062 #4E1762 #622817
split-complementary
#2B6217 #281762 #621750
monochromatic
#0B1906 #15300B #2B6217 #419423 #56C52E

Accessibility & contrast

On white

7.34
#2B6217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2B6217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B6217
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6217#FFFFFF#000000##FFFFFF
##2B62171.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590A
Deuteranopia (green-blind)
#5E541E
Tritanopia (blue-blind)
#265E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2b6217;
/* rgb */ color: rgb(43, 98, 23);
/* oklch */ color: oklch(44.2% 0.121 138.8);
Tailwind
colors: {
  custom: {
    50: '#6b8f59',
    500: '#2b6217',
    950: '#000000',
  },
}
SCSS
$custom: #2b6217;
$custom-light: #6b8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6217",
  "rgb": {
    "r": 43,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 104,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44226,
    "c": 0.12097,
    "h": 138.8
  },
  "luminance": 0.09311
}

Semantic roles & 50–950 ramp

primary
#2B6217
secondary
#803C99
accent
#43E5BA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2B6217

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

Preview Lab → · Contrast checker → · Palette generator →

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