#2F3A12#2F3A12

#2F3A12 is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 32.8% C 0.063 H 122.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2F3A12
RGBrgb(47, 58, 18)
HSLhsl(77, 53%, 15%)
HSVhsv(77, 69%, 23%)
CMYKcmyk(19%, 0%, 69%, 77.3%)
CIE-LABlab(22.56, -11.90, 22.81)
CIE-LCHlch(22.56, 25.73, 117.55°)
OKLaboklab(32.84% -0.0341 0.0528)
OKLCHoklch(32.84% 0.063 122.8)
XYZxyz(2.7945, 3.6741, 1.1341)
Luminance0.0367 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A12 #1D123A
analogous
#3A3112 #2F3A12 #1B3A12
triadic
#2F3A12 #122F3A #3A122F
tetradic
#2F3A12 #123A31 #1D123A #3A121B
square
#2F3A12 #123A31 #1D123A #3A121B
split-complementary
#2F3A12 #121B3A #31123A
monochromatic
#131707 #131707 #2F3A12 #556920 #7B972F

Accessibility & contrast

On white

12.11
#2F3A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F3A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A12
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A12#FFFFFF#000000##FFFFFF
##2F3A121.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E360E
Deuteranopia (green-blind)
#3C3615
Tritanopia (blue-blind)
#323731
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f3a12;
/* rgb */ color: rgb(47, 58, 18);
/* oklch */ color: oklch(32.8% 0.063 122.8);
Tailwind
colors: {
  custom: {
    50: '#697052',
    500: '#2f3a12',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a12;
$custom-light: #697052;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a12",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 18
  },
  "hsl": {
    "h": 76.5,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32835,
    "c": 0.06282,
    "h": 122.8
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#2F3A12
secondary
#463573
accent
#4CDC73
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2F3A12

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

Preview Lab → · Contrast checker → · Palette generator →

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