#2A4E1F#2A4E1F

#2A4E1F is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.4% C 0.085 H 138.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2A4E1F
RGBrgb(42, 78, 31)
HSLhsl(106, 43%, 21%)
HSVhsv(106, 60%, 31%)
CMYKcmyk(46.2%, 0%, 60.3%, 69.4%)
CIE-LABlab(29.51, -23.33, 23.55)
CIE-LCHlch(29.51, 33.15, 134.73°)
OKLaboklab(38.44% -0.064 0.0559)
OKLCHoklch(38.44% 0.085 138.9)
XYZxyz(3.9264, 6.0397, 2.2549)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E1F #431F4E
analogous
#424E1F #2A4E1F #1F4E2C
triadic
#2A4E1F #1F2A4E #4E1F2A
tetradic
#2A4E1F #1F424E #431F4E #4E2C1F
square
#2A4E1F #1F424E #431F4E #4E2C1F
split-complementary
#2A4E1F #2C1F4E #4E1F42
monochromatic
#0C1609 #12220E #2A4E1F #427A30 #59A642

Accessibility & contrast

On white

9.51
#2A4E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A4E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E1F
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E1F#FFFFFF#000000##FFFFFF
##2A4E1F1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50481B
Deuteranopia (green-blind)
#4B4422
Tritanopia (blue-blind)
#284B43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4e1f;
/* rgb */ color: rgb(42, 78, 31);
/* oklch */ color: oklch(38.4% 0.085 138.9);
Tailwind
colors: {
  custom: {
    50: '#66805c',
    500: '#2a4e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e1f;
$custom-light: #66805c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e1f",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 31
  },
  "hsl": {
    "h": 105.957,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.38442,
    "c": 0.08502,
    "h": 138.9
  },
  "luminance": 0.0604
}

Semantic roles & 50–950 ramp

primary
#2A4E1F
secondary
#754683
accent
#55D3B5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2A4E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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