#2A6331#2A6331

#2A6331 is a dark, moderate green. Relative luminance 0.096; OKLCH L 44.8% C 0.100 H 146.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2A6331
RGBrgb(42, 99, 49)
HSLhsl(127, 40%, 28%)
HSVhsv(127, 58%, 39%)
CMYKcmyk(57.6%, 0%, 50.5%, 61.2%)
CIE-LABlab(37.18, -30.48, 22.80)
CIE-LCHlch(37.18, 38.06, 143.20°)
OKLaboklab(44.81% -0.0826 0.0555)
OKLCHoklch(44.81% 0.1 146.1)
XYZxyz(5.9707, 9.6372, 4.4507)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6331 #632A5C
analogous
#40632A #2A6331 #2A634D
triadic
#2A6331 #312A63 #63312A
tetradic
#2A6331 #2A4063 #632A5C #634D2A
square
#2A6331 #2A4063 #632A5C #634D2A
split-complementary
#2A6331 #4D2A63 #632A40
monochromatic
#09150B #18381C #2A6331 #3C8E46 #52B65E

Accessibility & contrast

On white

7.17
#2A6331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A6331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6331
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6331#FFFFFF#000000##FFFFFF
##2A63311.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645B2D
Deuteranopia (green-blind)
#5D5534
Tritanopia (blue-blind)
#1F6157
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a6331;
/* rgb */ color: rgb(42, 99, 49);
/* oklch */ color: oklch(44.8% 0.100 146.1);
Tailwind
colors: {
  custom: {
    50: '#69906a',
    500: '#2a6331',
    950: '#000000',
  },
}
SCSS
$custom: #2a6331;
$custom-light: #69906a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6331",
  "rgb": {
    "r": 42,
    "g": 99,
    "b": 49
  },
  "hsl": {
    "h": 127.368,
    "s": 40.426,
    "l": 27.647
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.09953,
    "h": 146.1
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#2A6331
secondary
#95538D
accent
#58C1D0
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#070C06
muted
#7A7D7A

Preview Lab

Preview with #2A6331

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

Preview Lab → · Contrast checker → · Palette generator →

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