#2D4F18#2D4F18

#2D4F18 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.092 H 135.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2D4F18
RGBrgb(45, 79, 24)
HSLhsl(97, 53%, 20%)
HSVhsv(97, 70%, 31%)
CMYKcmyk(43%, 0%, 69.6%, 69%)
CIE-LABlab(29.95, -23.52, 27.80)
CIE-LCHlch(29.95, 36.42, 130.24°)
OKLaboklab(38.82% -0.0653 0.0642)
OKLCHoklch(38.82% 0.092 135.5)
XYZxyz(4.0429, 6.2156, 1.8507)
Luminance0.0622 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F18 #3A184F
analogous
#484F18 #2D4F18 #184F1E
triadic
#2D4F18 #182D4F #4F182D
tetradic
#2D4F18 #18484F #3A184F #4F1E18
square
#2D4F18 #18484F #3A184F #4F1E18
split-complementary
#2D4F18 #1E184F #4F1848
monochromatic
#0D1707 #12200A #2D4F18 #487E26 #62AD35

Accessibility & contrast

On white

9.36
#2D4F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2D4F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F18
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F18#FFFFFF#000000##FFFFFF
##2D4F181.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524811
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#2C4C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d4f18;
/* rgb */ color: rgb(45, 79, 24);
/* oklch */ color: oklch(38.8% 0.092 135.5);
Tailwind
colors: {
  custom: {
    50: '#698058',
    500: '#2d4f18',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f18;
$custom-light: #698058;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f18",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 97.091,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38818,
    "c": 0.09162,
    "h": 135.5
  },
  "luminance": 0.06216
}

Semantic roles & 50–950 ramp

primary
#2D4F18
secondary
#6A3D86
accent
#4BDDA5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4F18

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

Preview Lab → · Contrast checker → · Palette generator →

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