#2F4518#2F4518

#2F4518 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.1% C 0.074 H 131.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F4518
RGBrgb(47, 69, 24)
HSLhsl(89, 48%, 18%)
HSVhsv(89, 65%, 27%)
CMYKcmyk(31.9%, 0%, 65.2%, 72.9%)
CIE-LABlab(26.52, -17.50, 24.00)
CIE-LCHlch(26.52, 29.70, 126.10°)
OKLaboklab(36.06% -0.0489 0.0561)
OKLCHoklch(36.06% 0.074 131.1)
XYZxyz(3.4652, 4.9264, 1.6323)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4518 #2E1845
analogous
#454418 #2F4518 #184518
triadic
#2F4518 #182F45 #45182F
tetradic
#2F4518 #184544 #2E1845 #451818
square
#2F4518 #184544 #2E1845 #451818
split-complementary
#2F4518 #181845 #441845
monochromatic
#0F1708 #101808 #2F4518 #4E7228 #6DA038

Accessibility & contrast

On white

10.58
#2F4518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F4518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4518
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4518#FFFFFF#000000##FFFFFF
##2F45181.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484013
Deuteranopia (green-blind)
#453E1B
Tritanopia (blue-blind)
#30423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f4518;
/* rgb */ color: rgb(47, 69, 24);
/* oklch */ color: oklch(36.1% 0.074 131.1);
Tailwind
colors: {
  custom: {
    50: '#697857',
    500: '#2f4518',
    950: '#000000',
  },
}
SCSS
$custom: #2f4518;
$custom-light: #697857;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4518",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 24
  },
  "hsl": {
    "h": 89.333,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.07446,
    "h": 131.1
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#2F4518
secondary
#5C3D7C
accent
#50D892
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4518

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

Preview Lab → · Contrast checker → · Palette generator →

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