#2A6311#2A6311

#2A6311 is a dark, vivid green. Relative luminance 0.095; OKLCH L 44.4% C 0.127 H 138.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2A6311
RGBrgb(42, 99, 17)
HSLhsl(102, 71%, 23%)
HSVhsv(102, 83%, 39%)
CMYKcmyk(57.6%, 0%, 82.8%, 61.2%)
CIE-LABlab(36.85, -34.19, 37.78)
CIE-LCHlch(36.85, 50.96, 132.14°)
OKLaboklab(44.43% -0.0945 0.0841)
OKLCHoklch(44.43% 0.127 138.3)
XYZxyz(5.5177, 9.4560, 2.0646)
Luminance0.0946 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6311 #4A1163
analogous
#536311 #2A6311 #116321
triadic
#2A6311 #112A63 #63112A
tetradic
#2A6311 #115363 #4A1163 #632111
square
#2A6311 #115363 #4A1163 #632111
split-complementary
#2A6311 #211163 #631153
monochromatic
#0B1A04 #142F08 #2A6311 #40971A #56CB23

Accessibility & contrast

On white

7.26
#2A6311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A6311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6311
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6311#FFFFFF#000000##FFFFFF
##2A63111.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A00
Deuteranopia (green-blind)
#5F551A
Tritanopia (blue-blind)
#255F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a6311;
/* rgb */ color: rgb(42, 99, 17);
/* oklch */ color: oklch(44.4% 0.127 138.3);
Tailwind
colors: {
  custom: {
    50: '#6b9056',
    500: '#2a6311',
    950: '#000000',
  },
}
SCSS
$custom: #2a6311;
$custom-light: #6b9056;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6311",
  "rgb": {
    "r": 42,
    "g": 99,
    "b": 17
  },
  "hsl": {
    "h": 101.707,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44427,
    "c": 0.12653,
    "h": 138.3
  },
  "luminance": 0.09456
}

Semantic roles & 50–950 ramp

primary
#2A6311
secondary
#7C349B
accent
#3AEDB7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6311

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

Preview Lab → · Contrast checker → · Palette generator →

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