#2F4212#2F4212

#2F4212 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.1% C 0.076 H 128.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2F4212
RGBrgb(47, 66, 18)
HSLhsl(84, 57%, 16%)
HSVhsv(84, 73%, 26%)
CMYKcmyk(28.8%, 0%, 72.7%, 74.1%)
CIE-LABlab(25.40, -16.48, 25.91)
CIE-LCHlch(25.40, 30.70, 122.46°)
OKLaboklab(35.12% -0.0467 0.0593)
OKLCHoklch(35.12% 0.076 128.2)
XYZxyz(3.2297, 4.5444, 1.2791)
Luminance0.0454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4212 #251242
analogous
#423D12 #2F4212 #174212
triadic
#2F4212 #122F42 #42122F
tetradic
#2F4212 #12423D #251242 #421217
square
#2F4212 #12423D #251242 #421217
split-complementary
#2F4212 #121742 #3D1242
monochromatic
#111807 #111807 #2F4212 #51721F #73A22C

Accessibility & contrast

On white

11.00
#2F4212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F4212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4212
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4212#FFFFFF#000000##FFFFFF
##2F42121.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D0C
Deuteranopia (green-blind)
#433C16
Tritanopia (blue-blind)
#313F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f4212;
/* rgb */ color: rgb(47, 66, 18);
/* oklch */ color: oklch(35.1% 0.076 128.2);
Tailwind
colors: {
  custom: {
    50: '#697652',
    500: '#2f4212',
    950: '#000000',
  },
}
SCSS
$custom: #2f4212;
$custom-light: #697652;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4212",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 83.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.07554,
    "h": 128.2
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#2F4212
secondary
#51357B
accent
#47E084
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F4212

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

Preview Lab → · Contrast checker → · Palette generator →

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