#2A3F0B#2A3F0B

#2A3F0B is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.8% C 0.080 H 129.3°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2A3F0B
RGBrgb(42, 63, 11)
HSLhsl(84, 70%, 15%)
HSVhsv(84, 83%, 25%)
CMYKcmyk(33.3%, 0%, 82.5%, 75.3%)
CIE-LABlab(23.91, -17.72, 27.55)
CIE-LCHlch(23.91, 32.76, 122.74°)
OKLaboklab(33.8% -0.0505 0.0617)
OKLCHoklch(33.8% 0.08 129.3)
XYZxyz(2.7927, 4.0713, 0.9552)
Luminance0.0407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F0B #200B3F
analogous
#3F3A0B #2A3F0B #103F0B
triadic
#2A3F0B #0B2A3F #3F0B2A
tetradic
#2A3F0B #0B3F3A #200B3F #3F0B10
square
#2A3F0B #0B3F3A #200B3F #3F0B10
split-complementary
#2A3F0B #0B103F #3A0B3F
monochromatic
#111A05 #111A05 #2A3F0B #4D7314 #6FA71D

Accessibility & contrast

On white

11.58
#2A3F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A3F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F0B
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F0B#FFFFFF#000000##FFFFFF
##2A3F0B1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A03
Deuteranopia (green-blind)
#403810
Tritanopia (blue-blind)
#2B3C35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3f0b;
/* rgb */ color: rgb(42, 63, 11);
/* oklch */ color: oklch(33.8% 0.080 129.3);
Tailwind
colors: {
  custom: {
    50: '#66744e',
    500: '#2a3f0b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f0b;
$custom-light: #66744e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f0b",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 11
  },
  "hsl": {
    "h": 84.231,
    "s": 70.27,
    "l": 14.51
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.07973,
    "h": 129.3
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#2A3F0B
secondary
#4B2A7C
accent
#3BED83
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A3F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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