#2F4D17#2F4D17

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

Color values

HEX#2F4D17
RGBrgb(47, 77, 23)
HSLhsl(93, 54%, 20%)
HSVhsv(93, 70%, 30%)
CMYKcmyk(39%, 0%, 70.1%, 69.8%)
CIE-LABlab(29.35, -21.82, 27.67)
CIE-LCHlch(29.35, 35.24, 128.25°)
OKLaboklab(38.35% -0.0609 0.0638)
OKLCHoklch(38.35% 0.088 133.7)
XYZxyz(3.9808, 5.9738, 1.7538)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D17 #35174D
analogous
#4A4D17 #2F4D17 #174D1A
triadic
#2F4D17 #172F4D #4D172F
tetradic
#2F4D17 #174A4D #35174D #4D1A17
square
#2F4D17 #174A4D #35174D #4D1A17
split-complementary
#2F4D17 #1A174D #4D174A
monochromatic
#0E1807 #121E09 #2F4D17 #4C7C25 #69AB33

Accessibility & contrast

On white

9.57
#2F4D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F4D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D17
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D17#FFFFFF#000000##FFFFFF
##2F4D171.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504710
Deuteranopia (green-blind)
#4C441B
Tritanopia (blue-blind)
#2F4A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4d17;
/* rgb */ color: rgb(47, 77, 23);
/* oklch */ color: oklch(38.4% 0.088 133.7);
Tailwind
colors: {
  custom: {
    50: '#6a7f57',
    500: '#2f4d17',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d17;
$custom-light: #6a7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d17",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 93.333,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.08821,
    "h": 133.7
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#2F4D17
secondary
#643C84
accent
#4ADD9C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4D17

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

Preview Lab → · Contrast checker → · Palette generator →

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