#2A5E1B#2A5E1B

#2A5E1B is a dark, moderate green. Relative luminance 0.086; OKLCH L 43.1% C 0.113 H 139.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2A5E1B
RGBrgb(42, 94, 27)
HSLhsl(107, 55%, 24%)
HSVhsv(107, 71%, 37%)
CMYKcmyk(55.3%, 0%, 71.3%, 63.1%)
CIE-LABlab(35.16, -31.23, 31.96)
CIE-LCHlch(35.16, 44.69, 134.34°)
OKLaboklab(43.06% -0.0858 0.0735)
OKLCHoklch(43.06% 0.113 139.4)
XYZxyz(5.1552, 8.5764, 2.4205)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5E1B #4F1B5E
analogous
#4B5E1B #2A5E1B #1B5E2D
triadic
#2A5E1B #1B2A5E #5E1B2A
tetradic
#2A5E1B #1B4B5E #4F1B5E #5E2D1B
square
#2A5E1B #1B4B5E #4F1B5E #5E2D1B
split-complementary
#2A5E1B #2D1B5E #5E1B4B
monochromatic
#0B1807 #152E0D #2A5E1B #3F8E29 #54BD36

Accessibility & contrast

On white

7.73
#2A5E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A5E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5E1B
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5E1B#FFFFFF#000000##FFFFFF
##2A5E1B1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615512
Deuteranopia (green-blind)
#5A5121
Tritanopia (blue-blind)
#255B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5e1b;
/* rgb */ color: rgb(42, 94, 27);
/* oklch */ color: oklch(43.1% 0.113 139.4);
Tailwind
colors: {
  custom: {
    50: '#698c5b',
    500: '#2a5e1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a5e1b;
$custom-light: #698c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5e1b",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 27
  },
  "hsl": {
    "h": 106.567,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.43057,
    "c": 0.11297,
    "h": 139.4
  },
  "luminance": 0.08577
}

Semantic roles & 50–950 ramp

primary
#2A5E1B
secondary
#814194
accent
#49DFBD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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