#2A4F0B#2A4F0B

#2A4F0B is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.103 H 134.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4F0B
RGBrgb(42, 79, 11)
HSLhsl(93, 76%, 18%)
HSVhsv(93, 86%, 31%)
CMYKcmyk(46.8%, 0%, 86.1%, 69%)
CIE-LABlab(29.68, -25.78, 33.12)
CIE-LCHlch(29.68, 41.97, 127.90°)
OKLaboklab(38.52% -0.0723 0.0734)
OKLCHoklch(38.52% 0.103 134.6)
XYZxyz(3.8112, 6.1082, 1.2947)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F0B #300B4F
analogous
#4C4F0B #2A4F0B #0B4F0E
triadic
#2A4F0B #0B2A4F #4F0B2A
tetradic
#2A4F0B #0B4C4F #300B4F #4F0E0B
square
#2A4F0B #0B4C4F #300B4F #4F0E0B
split-complementary
#2A4F0B #0E0B4F #4F0B4C
monochromatic
#0E1B04 #0E1B04 #2A4F0B #478512 #63BA1A

Accessibility & contrast

On white

9.45
#2A4F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A4F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F0B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F0B#FFFFFF#000000##FFFFFF
##2A4F0B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4D4513
Tritanopia (blue-blind)
#294C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f0b;
/* rgb */ color: rgb(42, 79, 11);
/* oklch */ color: oklch(38.5% 0.103 134.6);
Tailwind
colors: {
  custom: {
    50: '#688051',
    500: '#2a4f0b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f0b;
$custom-light: #688051;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f0b",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 11
  },
  "hsl": {
    "h": 92.647,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.38523,
    "c": 0.103,
    "h": 134.6
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#2A4F0B
secondary
#5F2B8B
accent
#36F29C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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