#2D4E07#2D4E07

#2D4E07 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.102 H 132.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2D4E07
RGBrgb(45, 78, 7)
HSLhsl(88, 84%, 17%)
HSVhsv(88, 91%, 31%)
CMYKcmyk(42.3%, 0%, 91%, 69.4%)
CIE-LABlab(29.47, -24.34, 34.38)
CIE-LCHlch(29.47, 42.12, 125.30°)
OKLaboklab(38.38% -0.0689 0.0752)
OKLCHoklch(38.38% 0.102 132.5)
XYZxyz(3.8449, 6.0218, 1.1607)
Luminance0.0602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E07 #28074E
analogous
#4E4C07 #2D4E07 #0A4E07
triadic
#2D4E07 #072D4E #4E072D
tetradic
#2D4E07 #074E4C #28074E #4E070A
square
#2D4E07 #074E4C #28074E #4E070A
split-complementary
#2D4E07 #070A4E #4C074E
monochromatic
#101C03 #101C03 #2D4E07 #4D860C #6EBE11

Accessibility & contrast

On white

9.53
#2D4E07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2D4E07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E07
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E07#FFFFFF#000000##FFFFFF
##2D4E071.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524700
Deuteranopia (green-blind)
#4D4510
Tritanopia (blue-blind)
#2D4A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4e07;
/* rgb */ color: rgb(45, 78, 7);
/* oklch */ color: oklch(38.4% 0.102 132.5);
Tailwind
colors: {
  custom: {
    50: '#6a804f',
    500: '#2d4e07',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e07;
$custom-light: #6a804f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e07",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 7
  },
  "hsl": {
    "h": 87.887,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.38383,
    "c": 0.10202,
    "h": 132.5
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#2D4E07
secondary
#55258C
accent
#2EFA8D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2D4E07

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

Preview Lab → · Contrast checker → · Palette generator →

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