#2B6017#2B6017

#2B6017 is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.6% C 0.118 H 138.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2B6017
RGBrgb(43, 96, 23)
HSLhsl(104, 61%, 23%)
HSVhsv(104, 76%, 38%)
CMYKcmyk(55.2%, 0%, 76%, 62.4%)
CIE-LABlab(35.87, -32.15, 34.51)
CIE-LCHlch(35.87, 47.17, 132.98°)
OKLaboklab(43.65% -0.0887 0.0782)
OKLCHoklch(43.65% 0.118 138.6)
XYZxyz(5.3336, 8.9408, 2.2551)
Luminance0.0894 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B6017 #4C1760
analogous
#4F6017 #2B6017 #176027
triadic
#2B6017 #172B60 #60172B
tetradic
#2B6017 #174F60 #4C1760 #602717
square
#2B6017 #174F60 #4C1760 #602717
split-complementary
#2B6017 #271760 #60174F
monochromatic
#0B1906 #152F0B #2B6017 #419123 #57C32F

Accessibility & contrast

On white

7.53
#2B6017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2B6017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B6017
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B6017#FFFFFF#000000##FFFFFF
##2B60171.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570B
Deuteranopia (green-blind)
#5C531E
Tritanopia (blue-blind)
#265D52
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b6017;
/* rgb */ color: rgb(43, 96, 23);
/* oklch */ color: oklch(43.6% 0.118 138.6);
Tailwind
colors: {
  custom: {
    50: '#6a8e59',
    500: '#2b6017',
    950: '#000000',
  },
}
SCSS
$custom: #2b6017;
$custom-light: #6a8e59;
$custom-dark: #000000;
JSON
{
  "hex": "#2b6017",
  "rgb": {
    "r": 43,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 103.562,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.11824,
    "h": 138.6
  },
  "luminance": 0.08941
}

Semantic roles & 50–950 ramp

primary
#2B6017
secondary
#7E3C97
accent
#43E4B8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2B6017

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

Preview Lab → · Contrast checker → · Palette generator →

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