#2A6E1F#2A6E1F

#2A6E1F is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.7% C 0.132 H 141.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#2A6E1F
RGBrgb(42, 110, 31)
HSLhsl(112, 56%, 28%)
HSVhsv(112, 72%, 43%)
CMYKcmyk(61.8%, 0%, 71.8%, 56.9%)
CIE-LABlab(40.80, -37.50, 36.18)
CIE-LCHlch(40.80, 52.11, 136.03°)
OKLaboklab(47.72% -0.1025 0.0829)
OKLCHoklch(47.72% 0.132 141)
XYZxyz(6.7778, 11.7424, 3.2054)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6E1F #631F6E
analogous
#516E1F #2A6E1F #1F6E3C
triadic
#2A6E1F #1F2A6E #6E1F2A
tetradic
#2A6E1F #1F516E #631F6E #6E3C1F
square
#2A6E1F #1F516E #631F6E #6E3C1F
split-complementary
#2A6E1F #3C1F6E #6E1F51
monochromatic
#091807 #183E12 #2A6E1F #3C9E2C #52C93F

Accessibility & contrast

On white

6.27
#2A6E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2A6E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6E1F
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6E1F#FFFFFF#000000##FFFFFF
##2A6E1F1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716414
Deuteranopia (green-blind)
#685E26
Tritanopia (blue-blind)
#206A5E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a6e1f;
/* rgb */ color: rgb(42, 110, 31);
/* oklch */ color: oklch(47.7% 0.132 141.0);
Tailwind
colors: {
  custom: {
    50: '#6c985f',
    500: '#2a6e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a6e1f;
$custom-light: #6c985f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6e1f",
  "rgb": {
    "r": 42,
    "g": 110,
    "b": 31
  },
  "hsl": {
    "h": 111.646,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.47724,
    "c": 0.13184,
    "h": 141
  },
  "luminance": 0.11743
}

Semantic roles & 50–950 ramp

primary
#2A6E1F
secondary
#9547A2
accent
#48DFCA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #2A6E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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