#2A6312#2A6312

#2A6312 is a dark, vivid green. Relative luminance 0.095; OKLCH L 44.4% C 0.126 H 138.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2A6312
RGBrgb(42, 99, 18)
HSLhsl(102, 69%, 23%)
HSVhsv(102, 82%, 39%)
CMYKcmyk(57.6%, 0%, 81.8%, 61.2%)
CIE-LABlab(36.85, -34.12, 37.43)
CIE-LCHlch(36.85, 50.65, 132.35°)
OKLaboklab(44.43% -0.0942 0.0836)
OKLCHoklch(44.43% 0.126 138.4)
XYZxyz(5.5257, 9.4592, 2.1068)
Luminance0.0946 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6312 #4B1263
analogous
#526312 #2A6312 #126322
triadic
#2A6312 #122A63 #63122A
tetradic
#2A6312 #125263 #4B1263 #632212
square
#2A6312 #125263 #4B1263 #632212
split-complementary
#2A6312 #221263 #631252
monochromatic
#0B1A05 #142F09 #2A6312 #40971B #56CB25

Accessibility & contrast

On white

7.26
#2A6312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A6312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6312
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6312#FFFFFF#000000##FFFFFF
##2A63121.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A01
Deuteranopia (green-blind)
#5F551B
Tritanopia (blue-blind)
#255F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a6312;
/* rgb */ color: rgb(42, 99, 18);
/* oklch */ color: oklch(44.4% 0.126 138.4);
Tailwind
colors: {
  custom: {
    50: '#6b9057',
    500: '#2a6312',
    950: '#000000',
  },
}
SCSS
$custom: #2a6312;
$custom-light: #6b9057;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6312",
  "rgb": {
    "r": 42,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 102.222,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44434,
    "c": 0.12596,
    "h": 138.4
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#2A6312
secondary
#7D369B
accent
#3CECB8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6312

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

Preview Lab → · Contrast checker → · Palette generator →

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