#2A5219#2A5219

#2A5219 is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.5% C 0.097 H 137.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2A5219
RGBrgb(42, 82, 25)
HSLhsl(102, 53%, 21%)
HSVhsv(102, 70%, 32%)
CMYKcmyk(48.8%, 0%, 69.5%, 67.8%)
CIE-LABlab(30.87, -26.00, 28.27)
CIE-LCHlch(30.87, 38.41, 132.61°)
OKLaboklab(39.53% -0.0718 0.0654)
OKLCHoklch(39.53% 0.097 137.7)
XYZxyz(4.1475, 6.5968, 1.9743)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5219 #411952
analogous
#465219 #2A5219 #195224
triadic
#2A5219 #192A52 #52192A
tetradic
#2A5219 #194652 #411952 #522419
square
#2A5219 #194652 #411952 #522419
split-complementary
#2A5219 #241952 #521946
monochromatic
#0C1707 #12230B #2A5219 #428127 #5AB036

Accessibility & contrast

On white

9.05
#2A5219 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A5219 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5219
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5219#FFFFFF#000000##FFFFFF
##2A52191.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B12
Deuteranopia (green-blind)
#4F471E
Tritanopia (blue-blind)
#284F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5219;
/* rgb */ color: rgb(42, 82, 25);
/* oklch */ color: oklch(39.5% 0.097 137.7);
Tailwind
colors: {
  custom: {
    50: '#678358',
    500: '#2a5219',
    950: '#000000',
  },
}
SCSS
$custom: #2a5219;
$custom-light: #678358;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5219",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 25
  },
  "hsl": {
    "h": 102.105,
    "s": 53.271,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39531,
    "c": 0.0971,
    "h": 137.7
  },
  "luminance": 0.06597
}

Semantic roles & 50–950 ramp

primary
#2A5219
secondary
#723E88
accent
#4BDDB1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5219

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

Preview Lab → · Contrast checker → · Palette generator →

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