#2D4F12#2D4F12

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

Color values

HEX#2D4F12
RGBrgb(45, 79, 18)
HSLhsl(93, 63%, 19%)
HSVhsv(93, 77%, 31%)
CMYKcmyk(43%, 0%, 77.2%, 69%)
CIE-LABlab(29.89, -24.09, 30.58)
CIE-LCHlch(29.89, 38.93, 128.23°)
OKLaboklab(38.76% -0.0674 0.0692)
OKLCHoklch(38.76% 0.097 134.2)
XYZxyz(3.9873, 6.1933, 1.5575)
Luminance0.0619 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F12 #34124F
analogous
#4C4F12 #2D4F12 #124F16
triadic
#2D4F12 #122D4F #4F122D
tetradic
#2D4F12 #124C4F #34124F #4F1612
square
#2D4F12 #124C4F #34124F #4F1612
split-complementary
#2D4F12 #16124F #4F124C
monochromatic
#0E1906 #111D07 #2D4F12 #49811D #66B329

Accessibility & contrast

On white

9.38
#2D4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4F12
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F12#FFFFFF#000000##FFFFFF
##2D4F121.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4E4518
Tritanopia (blue-blind)
#2D4C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4f12;
/* rgb */ color: rgb(45, 79, 18);
/* oklch */ color: oklch(38.8% 0.097 134.2);
Tailwind
colors: {
  custom: {
    50: '#698054',
    500: '#2d4f12',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f12;
$custom-light: #698054;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f12",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 93.443,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38755,
    "c": 0.09659,
    "h": 134.2
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#2D4F12
secondary
#633588
accent
#42E69D
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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