#2A6F1F#2A6F1F

#2A6F1F is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.0% C 0.133 H 141.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2A6F1F
RGBrgb(42, 111, 31)
HSLhsl(112, 56%, 28%)
HSVhsv(112, 72%, 44%)
CMYKcmyk(62.2%, 0%, 72.1%, 56.5%)
CIE-LABlab(41.15, -37.90, 36.55)
CIE-LCHlch(41.15, 52.65, 136.04°)
OKLaboklab(48.01% -0.1036 0.0837)
OKLCHoklch(48.01% 0.133 141.1)
XYZxyz(6.8863, 11.9594, 3.2416)
Luminance0.1196 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6F1F #641F6F
analogous
#526F1F #2A6F1F #1F6F3C
triadic
#2A6F1F #1F2A6F #6F1F2A
tetradic
#2A6F1F #1F526F #641F6F #6F3C1F
square
#2A6F1F #1F526F #641F6F #6F3C1F
split-complementary
#2A6F1F #3C1F6F #6F1F52
monochromatic
#091807 #183F12 #2A6F1F #3C9F2C #52C93F

Accessibility & contrast

On white

6.19
#2A6F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2A6F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6F1F
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6F1F#FFFFFF#000000##FFFFFF
##2A6F1F1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726513
Deuteranopia (green-blind)
#695F26
Tritanopia (blue-blind)
#206B5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a6f1f;
/* rgb */ color: rgb(42, 111, 31);
/* oklch */ color: oklch(48.0% 0.133 141.1);
Tailwind
colors: {
  custom: {
    50: '#6c995f',
    500: '#2a6f1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a6f1f;
$custom-light: #6c995f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6f1f",
  "rgb": {
    "r": 42,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 111.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48011,
    "c": 0.13316,
    "h": 141.1
  },
  "luminance": 0.1196
}

Semantic roles & 50–950 ramp

primary
#2A6F1F
secondary
#9647A3
accent
#48E0CB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #2A6F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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