#2D4F0C#2D4F0C

#2D4F0C is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.7% C 0.101 H 133.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2D4F0C
RGBrgb(45, 79, 12)
HSLhsl(90, 74%, 18%)
HSVhsv(90, 85%, 31%)
CMYKcmyk(43%, 0%, 84.8%, 69%)
CIE-LABlab(29.85, -24.53, 32.97)
CIE-LCHlch(29.85, 41.10, 126.65°)
OKLaboklab(38.71% -0.0691 0.0732)
OKLCHoklch(38.71% 0.101 133.3)
XYZxyz(3.9445, 6.1762, 1.3320)
Luminance0.0618 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F0C #2E0C4F
analogous
#4E4F0C #2D4F0C #0C4F0D
triadic
#2D4F0C #0C2D4F #4F0C2D
tetradic
#2D4F0C #0C4E4F #2E0C4F #4F0D0C
square
#2D4F0C #0C4E4F #2E0C4F #4F0D0C
split-complementary
#2D4F0C #0D0C4F #4F0C4E
monochromatic
#0F1B04 #0F1B04 #2D4F0C #4B8414 #6AB91C

Accessibility & contrast

On white

9.40
#2D4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4F0C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F0C#FFFFFF#000000##FFFFFF
##2D4F0C1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534800
Deuteranopia (green-blind)
#4E4513
Tritanopia (blue-blind)
#2D4B42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4f0c;
/* rgb */ color: rgb(45, 79, 12);
/* oklch */ color: oklch(38.7% 0.101 133.3);
Tailwind
colors: {
  custom: {
    50: '#6a8051',
    500: '#2d4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f0c;
$custom-light: #6a8051;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f0c",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 90.448,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38707,
    "c": 0.10063,
    "h": 133.3
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#2D4F0C
secondary
#5C2C8B
accent
#38F095
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2D4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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