#2F4010#2F4010

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

Color values

HEX#2F4010
RGBrgb(47, 64, 16)
HSLhsl(81, 60%, 16%)
HSVhsv(81, 75%, 25%)
CMYKcmyk(26.6%, 0%, 75%, 74.9%)
CIE-LABlab(24.67, -15.55, 26.13)
CIE-LCHlch(24.67, 30.40, 120.76°)
OKLaboklab(34.53% -0.0444 0.0595)
OKLCHoklch(34.53% 0.074 126.7)
XYZxyz(3.0992, 4.3085, 1.1585)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4010 #211040
analogous
#403910 #2F4010 #174010
triadic
#2F4010 #102F40 #40102F
tetradic
#2F4010 #104039 #211040 #401017
square
#2F4010 #104039 #211040 #401017
split-complementary
#2F4010 #101740 #391040
monochromatic
#121806 #121806 #2F4010 #53711C #77A228

Accessibility & contrast

On white

11.28
#2F4010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4010
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4010#FFFFFF#000000##FFFFFF
##2F40101.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B09
Deuteranopia (green-blind)
#413A14
Tritanopia (blue-blind)
#313D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4010;
/* rgb */ color: rgb(47, 64, 16);
/* oklch */ color: oklch(34.5% 0.074 126.7);
Tailwind
colors: {
  custom: {
    50: '#697551',
    500: '#2f4010',
    950: '#000000',
  },
}
SCSS
$custom: #2f4010;
$custom-light: #697551;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4010",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 16
  },
  "hsl": {
    "h": 81.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.34527,
    "c": 0.07422,
    "h": 126.7
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#2F4010
secondary
#4B327A
accent
#45E37D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F4010

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

Preview Lab → · Contrast checker → · Palette generator →

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