#2F3F12#2F3F12

#2F3F12 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.3% C 0.071 H 126.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2F3F12
RGBrgb(47, 63, 18)
HSLhsl(81, 56%, 16%)
HSVhsv(81, 71%, 25%)
CMYKcmyk(25.4%, 0%, 71.4%, 75.3%)
CIE-LABlab(24.33, -14.80, 24.76)
CIE-LCHlch(24.33, 28.84, 120.87°)
OKLaboklab(34.26% -0.0421 0.0569)
OKLCHoklch(34.26% 0.071 126.5)
XYZxyz(3.0590, 4.2030, 1.2222)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F12 #22123F
analogous
#3F3812 #2F3F12 #183F12
triadic
#2F3F12 #122F3F #3F122F
tetradic
#2F3F12 #123F38 #22123F #3F1218
square
#2F3F12 #123F38 #22123F #3F1218
split-complementary
#2F3F12 #12183F #38123F
monochromatic
#121807 #121807 #2F3F12 #536F20 #769E2D

Accessibility & contrast

On white

11.41
#2F3F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F3F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F12
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F12#FFFFFF#000000##FFFFFF
##2F3F121.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A0D
Deuteranopia (green-blind)
#403A15
Tritanopia (blue-blind)
#313C36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f3f12;
/* rgb */ color: rgb(47, 63, 18);
/* oklch */ color: oklch(34.3% 0.071 126.5);
Tailwind
colors: {
  custom: {
    50: '#697452',
    500: '#2f3f12',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f12;
$custom-light: #697452;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f12",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 18
  },
  "hsl": {
    "h": 81.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34263,
    "c": 0.0708,
    "h": 126.5
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#2F3F12
secondary
#4D3578
accent
#49DF7E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F3F12

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

Preview Lab → · Contrast checker → · Palette generator →

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