#2F4012#2F4012

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

Color values

HEX#2F4012
RGBrgb(47, 64, 18)
HSLhsl(82, 56%, 16%)
HSVhsv(82, 72%, 25%)
CMYKcmyk(26.6%, 0%, 71.9%, 74.9%)
CIE-LABlab(24.69, -15.36, 25.14)
CIE-LCHlch(24.69, 29.46, 121.43°)
OKLaboklab(34.55% -0.0437 0.0577)
OKLCHoklch(34.55% 0.072 127.1)
XYZxyz(3.1149, 4.3147, 1.2409)
Luminance0.0432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4012 #231240
analogous
#403A12 #2F4012 #184012
triadic
#2F4012 #122F40 #40122F
tetradic
#2F4012 #12403A #231240 #401218
square
#2F4012 #12403A #231240 #401218
split-complementary
#2F4012 #121840 #3A1240
monochromatic
#121807 #121807 #2F4012 #52701F #75A02D

Accessibility & contrast

On white

11.27
#2F4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4012
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4012#FFFFFF#000000##FFFFFF
##2F40121.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4012;
/* rgb */ color: rgb(47, 64, 18);
/* oklch */ color: oklch(34.5% 0.072 127.1);
Tailwind
colors: {
  custom: {
    50: '#697552',
    500: '#2f4012',
    950: '#000000',
  },
}
SCSS
$custom: #2f4012;
$custom-light: #697552;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4012",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 82.174,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34549,
    "c": 0.07238,
    "h": 127.1
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#2F4012
secondary
#4E3579
accent
#48DF80
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F4012

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

Preview Lab → · Contrast checker → · Palette generator →

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