#2A4A10#2A4A10

#2A4A10 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.093 H 134.1°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2A4A10
RGBrgb(42, 74, 16)
HSLhsl(93, 64%, 18%)
HSVhsv(93, 78%, 29%)
CMYKcmyk(43.2%, 0%, 78.4%, 71%)
CIE-LABlab(27.92, -23.00, 29.39)
CIE-LCHlch(27.92, 37.32, 128.05°)
OKLaboklab(37.09% -0.0644 0.0664)
OKLCHoklch(37.09% 0.093 134.1)
XYZxyz(3.4971, 5.4270, 1.3534)
Luminance0.0543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A10 #30104A
analogous
#474A10 #2A4A10 #104A13
triadic
#2A4A10 #102A4A #4A102A
tetradic
#2A4A10 #10474A #30104A #4A1310
square
#2A4A10 #10474A #30104A #4A1310
split-complementary
#2A4A10 #13104A #4A1047
monochromatic
#0E1905 #0E1905 #2A4A10 #477C1B #63AF26

Accessibility & contrast

On white

10.07
#2A4A10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A4A10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A10
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A10#FFFFFF#000000##FFFFFF
##2A4A101.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4407
Deuteranopia (green-blind)
#494115
Tritanopia (blue-blind)
#2A473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a4a10;
/* rgb */ color: rgb(42, 74, 16);
/* oklch */ color: oklch(37.1% 0.093 134.1);
Tailwind
colors: {
  custom: {
    50: '#677d52',
    500: '#2a4a10',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a10;
$custom-light: #677d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a10",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 16
  },
  "hsl": {
    "h": 93.103,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37088,
    "c": 0.09252,
    "h": 134.1
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#2A4A10
secondary
#5F3284
accent
#40E79D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4A10

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

Preview Lab → · Contrast checker → · Palette generator →

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