#2D4F17#2D4F17

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

Color values

HEX#2D4F17
RGBrgb(45, 79, 23)
HSLhsl(96, 55%, 20%)
HSVhsv(96, 71%, 31%)
CMYKcmyk(43%, 0%, 70.9%, 69%)
CIE-LABlab(29.94, -23.63, 28.29)
CIE-LCHlch(29.94, 36.86, 129.87°)
OKLaboklab(38.81% -0.0657 0.0651)
OKLCHoklch(38.81% 0.093 135.2)
XYZxyz(4.0327, 6.2115, 1.7969)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F17 #39174F
analogous
#494F17 #2D4F17 #174F1D
triadic
#2D4F17 #172D4F #4F172D
tetradic
#2D4F17 #17494F #39174F #4F1D17
square
#2D4F17 #17494F #39174F #4F1D17
split-complementary
#2D4F17 #1D174F #4F1749
monochromatic
#0D1807 #122009 #2D4F17 #487E25 #63AE33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D4F17#FFFFFF#000000##FFFFFF
##2D4F171.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)
#524810
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#2C4C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4f17;
/* rgb */ color: rgb(45, 79, 23);
/* oklch */ color: oklch(38.8% 0.092 135.2);
Tailwind
colors: {
  custom: {
    50: '#698057',
    500: '#2d4f17',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f17;
$custom-light: #698057;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f17",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 96.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.38806,
    "c": 0.0925,
    "h": 135.2
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#2D4F17
secondary
#693C86
accent
#4ADEA4
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D4F17

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

Preview Lab → · Contrast checker → · Palette generator →

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