#2F4215#2F4215

#2F4215 is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.2% C 0.073 H 128.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2F4215
RGBrgb(47, 66, 21)
HSLhsl(85, 52%, 17%)
HSVhsv(85, 68%, 26%)
CMYKcmyk(28.8%, 0%, 68.2%, 74.1%)
CIE-LABlab(25.43, -16.18, 24.38)
CIE-LCHlch(25.43, 29.26, 123.57°)
OKLaboklab(35.16% -0.0456 0.0565)
OKLCHoklch(35.16% 0.073 128.9)
XYZxyz(3.2558, 4.5548, 1.4170)
Luminance0.0456 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4215 #281542
analogous
#423F15 #2F4215 #194215
triadic
#2F4215 #152F42 #42152F
tetradic
#2F4215 #15423F #281542 #421519
square
#2F4215 #15423F #281542 #421519
split-complementary
#2F4215 #151942 #3F1542
monochromatic
#111707 #111707 #2F4215 #507024 #719F33

Accessibility & contrast

On white

10.99
#2F4215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4215
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4215#FFFFFF#000000##FFFFFF
##2F42151.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D10
Deuteranopia (green-blind)
#433C18
Tritanopia (blue-blind)
#313F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f4215;
/* rgb */ color: rgb(47, 66, 21);
/* oklch */ color: oklch(35.2% 0.073 128.9);
Tailwind
colors: {
  custom: {
    50: '#697654',
    500: '#2f4215',
    950: '#000000',
  },
}
SCSS
$custom: #2f4215;
$custom-light: #697654;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4215",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 21
  },
  "hsl": {
    "h": 85.333,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.3516,
    "c": 0.07264,
    "h": 128.9
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#2F4215
secondary
#54397A
accent
#4DDB89
background
#F6F7F4
surface
#EBEDE8
border
#C6C8C4
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F4215

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

Preview Lab → · Contrast checker → · Palette generator →

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