#2F4008#2F4008

#2F4008 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.5% C 0.080 H 125.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2F4008
RGBrgb(47, 64, 8)
HSLhsl(78, 78%, 14%)
HSVhsv(78, 88%, 25%)
CMYKcmyk(26.6%, 0%, 87.5%, 74.9%)
CIE-LABlab(24.60, -16.14, 29.59)
CIE-LCHlch(24.60, 33.71, 118.60°)
OKLaboklab(34.46% -0.0468 0.0653)
OKLCHoklch(34.46% 0.08 125.6)
XYZxyz(3.0495, 4.2886, 0.8968)
Luminance0.0429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4008 #190840
analogous
#403508 #2F4008 #134008
triadic
#2F4008 #082F40 #40082F
tetradic
#2F4008 #084035 #190840 #400813
square
#2F4008 #084035 #190840 #400813
split-complementary
#2F4008 #081340 #350840
monochromatic
#141B03 #141B03 #2F4008 #57760F #7FAD16

Accessibility & contrast

On white

11.30
#2F4008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F4008 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4008
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4008#FFFFFF#000000##FFFFFF
##2F40081.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#423A0E
Tritanopia (blue-blind)
#323C36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f4008;
/* rgb */ color: rgb(47, 64, 8);
/* oklch */ color: oklch(34.5% 0.080 125.6);
Tailwind
colors: {
  custom: {
    50: '#6a744d',
    500: '#2f4008',
    950: '#000000',
  },
}
SCSS
$custom: #2f4008;
$custom-light: #6a744d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4008",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 8
  },
  "hsl": {
    "h": 78.214,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.08037,
    "h": 125.6
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#2F4008
secondary
#40257E
accent
#34F46E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4008

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

Preview Lab → · Contrast checker → · Palette generator →

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