#2F4105#2F4105

#2F4105 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.084 H 125.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2F4105
RGBrgb(47, 65, 5)
HSLhsl(78, 86%, 14%)
HSVhsv(78, 92%, 25%)
CMYKcmyk(27.7%, 0%, 92.3%, 74.5%)
CIE-LABlab(24.94, -16.88, 31.14)
CIE-LCHlch(24.94, 35.42, 118.47°)
OKLaboklab(34.72% -0.0492 0.068)
OKLCHoklch(34.72% 0.084 125.9)
XYZxyz(3.0900, 4.3958, 0.8292)
Luminance0.0440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4105 #170541
analogous
#413505 #2F4105 #114105
triadic
#2F4105 #052F41 #41052F
tetradic
#2F4105 #054135 #170541 #410511
square
#2F4105 #054135 #170541 #410511
split-complementary
#2F4105 #051141 #350541
monochromatic
#151C02 #151C02 #2F4105 #587A09 #81B30E

Accessibility & contrast

On white

11.17
#2F4105 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F4105 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4105
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4105#FFFFFF#000000##FFFFFF
##2F41051.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#433B0B
Tritanopia (blue-blind)
#323D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4105;
/* rgb */ color: rgb(47, 65, 5);
/* oklch */ color: oklch(34.7% 0.084 125.9);
Tailwind
colors: {
  custom: {
    50: '#6a754b',
    500: '#2f4105',
    950: '#000000',
  },
}
SCSS
$custom: #2f4105;
$custom-light: #6a754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4105",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 5
  },
  "hsl": {
    "h": 78,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.34722,
    "c": 0.08391,
    "h": 125.9
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#2F4105
secondary
#3D2081
accent
#2CFC6A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4105

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

Preview Lab → · Contrast checker → · Palette generator →

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