#2A3A0F#2A3A0F

#2A3A0F is a dark, moderate yellow-green. Relative luminance 0.036; OKLCH L 32.4% C 0.069 H 127.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2A3A0F
RGBrgb(42, 58, 15)
HSLhsl(82, 59%, 14%)
HSVhsv(82, 74%, 23%)
CMYKcmyk(27.6%, 0%, 74.1%, 77.3%)
CIE-LABlab(22.13, -14.61, 23.82)
CIE-LCHlch(22.13, 27.95, 121.52°)
OKLaboklab(32.38% -0.0415 0.0546)
OKLCHoklch(32.38% 0.069 127.3)
XYZxyz(2.5541, 3.5528, 1.0030)
Luminance0.0355 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A0F #1F0F3A
analogous
#3A350F #2A3A0F #153A0F
triadic
#2A3A0F #0F2A3A #3A0F2A
tetradic
#2A3A0F #0F3A35 #1F0F3A #3A0F15
square
#2A3A0F #0F3A35 #1F0F3A #3A0F15
split-complementary
#2A3A0F #0F153A #350F3A
monochromatic
#121806 #121806 #2A3A0F #4D6B1C #709B28

Accessibility & contrast

On white

12.28
#2A3A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A3A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A0F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A0F#FFFFFF#000000##FFFFFF
##2A3A0F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D360A
Deuteranopia (green-blind)
#3B3512
Tritanopia (blue-blind)
#2C3731
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a3a0f;
/* rgb */ color: rgb(42, 58, 15);
/* oklch */ color: oklch(32.4% 0.069 127.3);
Tailwind
colors: {
  custom: {
    50: '#657050',
    500: '#2a3a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a0f;
$custom-light: #657050;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a0f",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 15
  },
  "hsl": {
    "h": 82.326,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.32376,
    "c": 0.06859,
    "h": 127.3
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#2A3A0F
secondary
#4A3074
accent
#46E280
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2A3A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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