#2F3F0C#2F3F0C

#2F3F0C is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.2% C 0.076 H 125.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2F3F0C
RGBrgb(47, 63, 12)
HSLhsl(79, 68%, 15%)
HSVhsv(79, 81%, 25%)
CMYKcmyk(25.4%, 0%, 81%, 75.3%)
CIE-LABlab(24.28, -15.31, 27.60)
CIE-LCHlch(24.28, 31.56, 119.01°)
OKLaboklab(34.2% -0.0442 0.0619)
OKLCHoklch(34.2% 0.076 125.5)
XYZxyz(3.0162, 4.1859, 0.9968)
Luminance0.0419 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F0C #1C0C3F
analogous
#3F360C #2F3F0C #153F0C
triadic
#2F3F0C #0C2F3F #3F0C2F
tetradic
#2F3F0C #0C3F36 #1C0C3F #3F0C15
square
#2F3F0C #0C3F36 #1C0C3F #3F0C15
split-complementary
#2F3F0C #0C153F #360C3F
monochromatic
#131A05 #131A05 #2F3F0C #557216 #7CA620

Accessibility & contrast

On white

11.43
#2F3F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3F0C
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F0C#FFFFFF#000000##FFFFFF
##2F3F0C1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A04
Deuteranopia (green-blind)
#413910
Tritanopia (blue-blind)
#313C35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f3f0c;
/* rgb */ color: rgb(47, 63, 12);
/* oklch */ color: oklch(34.2% 0.076 125.5);
Tailwind
colors: {
  custom: {
    50: '#69744f',
    500: '#2f3f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f0c;
$custom-light: #69744f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f0c",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 12
  },
  "hsl": {
    "h": 78.824,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34201,
    "c": 0.07602,
    "h": 125.5
  },
  "luminance": 0.04186
}

Semantic roles & 50–950 ramp

primary
#2F3F0C
secondary
#452C7B
accent
#3DEB74
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F3F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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