#2A6340#2A6340

#2A6340 is a mid, moderate green. Relative luminance 0.098; OKLCH L 45.1% C 0.083 H 154.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2A6340
RGBrgb(42, 99, 64)
HSLhsl(143, 40%, 28%)
HSVhsv(143, 58%, 39%)
CMYKcmyk(57.6%, 0%, 35.4%, 61.2%)
CIE-LABlab(37.45, -27.61, 14.38)
CIE-LCHlch(37.45, 31.14, 152.48°)
OKLaboklab(45.12% -0.0751 0.0363)
OKLCHoklch(45.12% 0.083 154.2)
XYZxyz(6.3416, 9.7855, 6.4041)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6340 #632A4D
analogous
#30632A #2A6340 #2A635D
triadic
#2A6340 #402A63 #63402A
tetradic
#2A6340 #2A3063 #632A4D #635D2A
square
#2A6340 #2A3063 #632A4D #635D2A
split-complementary
#2A6340 #5D2A63 #632A30
monochromatic
#09150E #183824 #2A6340 #3C8E5C #52B678

Accessibility & contrast

On white

7.10
#2A6340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A6340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6340
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6340#FFFFFF#000000##FFFFFF
##2A63401.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635C3E
Deuteranopia (green-blind)
#5B5642
Tritanopia (blue-blind)
#1A625A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a6340;
/* rgb */ color: rgb(42, 99, 64);
/* oklch */ color: oklch(45.1% 0.083 154.2);
Tailwind
colors: {
  custom: {
    50: '#699075',
    500: '#2a6340',
    950: '#000000',
  },
}
SCSS
$custom: #2a6340;
$custom-light: #699075;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6340",
  "rgb": {
    "r": 42,
    "g": 99,
    "b": 64
  },
  "hsl": {
    "h": 143.158,
    "s": 40.426,
    "l": 27.647
  },
  "oklch": {
    "l": 0.45122,
    "c": 0.08343,
    "h": 154.2
  },
  "luminance": 0.09786
}

Semantic roles & 50–950 ramp

primary
#2A6340
secondary
#95537C
accent
#58A2D0
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#060C08
muted
#7A7D7B

Preview Lab

Preview with #2A6340

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

Preview Lab → · Contrast checker → · Palette generator →

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