#2D4B0F#2D4B0F

#2D4B0F is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.6% C 0.093 H 132.6°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2D4B0F
RGBrgb(45, 75, 15)
HSLhsl(90, 67%, 18%)
HSVhsv(90, 80%, 29%)
CMYKcmyk(40%, 0%, 80%, 70.6%)
CIE-LABlab(28.44, -22.35, 30.41)
CIE-LCHlch(28.44, 37.75, 126.31°)
OKLaboklab(37.56% -0.0629 0.0683)
OKLCHoklch(37.56% 0.093 132.6)
XYZxyz(3.6844, 5.6244, 1.3433)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4B0F #2D0F4B
analogous
#4B4B0F #2D4B0F #0F4B0F
triadic
#2D4B0F #0F2D4B #4B0F2D
tetradic
#2D4B0F #0F4B4B #2D0F4B #4B0F0F
square
#2D4B0F #0F4B4B #2D0F4B #4B0F0F
split-complementary
#2D4B0F #0F0F4B #4B0F4B
monochromatic
#0F1A05 #0F1A05 #2D4B0F #4C7E19 #6AB123

Accessibility & contrast

On white

9.88
#2D4B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D4B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4B0F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4B0F#FFFFFF#000000##FFFFFF
##2D4B0F1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4505
Deuteranopia (green-blind)
#4A4215
Tritanopia (blue-blind)
#2D483F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d4b0f;
/* rgb */ color: rgb(45, 75, 15);
/* oklch */ color: oklch(37.6% 0.093 132.6);
Tailwind
colors: {
  custom: {
    50: '#697d52',
    500: '#2d4b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2d4b0f;
$custom-light: #697d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4b0f",
  "rgb": {
    "r": 45,
    "g": 75,
    "b": 15
  },
  "hsl": {
    "h": 90,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37562,
    "c": 0.09291,
    "h": 132.6
  },
  "luminance": 0.05625
}

Semantic roles & 50–950 ramp

primary
#2D4B0F
secondary
#5B3085
accent
#3EEA94
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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