#2F431B#2F431B

#2F431B is a dark, moderate yellow-green. Relative luminance 0.047; OKLCH L 35.5% C 0.068 H 131.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F431B
RGBrgb(47, 67, 27)
HSLhsl(90, 43%, 18%)
HSVhsv(90, 60%, 26%)
CMYKcmyk(29.9%, 0%, 59.7%, 73.7%)
CIE-LABlab(25.86, -16.03, 21.54)
CIE-LCHlch(25.86, 26.86, 126.66°)
OKLaboklab(35.53% -0.0446 0.0511)
OKLCHoklch(35.53% 0.068 131.1)
XYZxyz(3.3772, 4.6977, 1.7655)
Luminance0.0470 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F431B #2F1B43
analogous
#43431B #2F431B #1B431B
triadic
#2F431B #1B2F43 #431B2F
tetradic
#2F431B #1B4343 #2F1B43 #431B1B
square
#2F431B #1B4343 #2F1B43 #431B1B
split-complementary
#2F431B #1B1B43 #431B43
monochromatic
#0F1609 #101709 #2F431B #4E6F2D #6C9A3E

Accessibility & contrast

On white

10.83
#2F431B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F431B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F431B
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F431B#FFFFFF#000000##FFFFFF
##2F431B1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463E17
Deuteranopia (green-blind)
#433D1E
Tritanopia (blue-blind)
#30403A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f431b;
/* rgb */ color: rgb(47, 67, 27);
/* oklch */ color: oklch(35.5% 0.068 131.1);
Tailwind
colors: {
  custom: {
    50: '#697758',
    500: '#2f431b',
    950: '#000000',
  },
}
SCSS
$custom: #2f431b;
$custom-light: #697758;
$custom-dark: #000000;
JSON
{
  "hex": "#2f431b",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 27
  },
  "hsl": {
    "h": 90,
    "s": 42.553,
    "l": 18.431
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.06785,
    "h": 131.1
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#2F431B
secondary
#5D4179
accent
#55D294
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F431B

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

Preview Lab → · Contrast checker → · Palette generator →

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