#2A3F0C#2A3F0C

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

Color values

HEX#2A3F0C
RGBrgb(42, 63, 12)
HSLhsl(85, 68%, 15%)
HSVhsv(85, 81%, 25%)
CMYKcmyk(33.3%, 0%, 81%, 75.3%)
CIE-LABlab(23.91, -17.64, 27.12)
CIE-LCHlch(23.91, 32.35, 123.05°)
OKLaboklab(33.81% -0.0502 0.061)
OKLCHoklch(33.81% 0.079 129.4)
XYZxyz(2.7987, 4.0737, 0.9866)
Luminance0.0407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F0C #210C3F
analogous
#3F3B0C #2A3F0C #113F0C
triadic
#2A3F0C #0C2A3F #3F0C2A
tetradic
#2A3F0C #0C3F3B #210C3F #3F0C11
square
#2A3F0C #0C3F3B #210C3F #3F0C11
split-complementary
#2A3F0C #0C113F #3B0C3F
monochromatic
#111A05 #111A05 #2A3F0C #4C7216 #6FA620

Accessibility & contrast

On white

11.57
#2A3F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3F0C
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F0C#FFFFFF#000000##FFFFFF
##2A3F0C1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A05
Deuteranopia (green-blind)
#3F3811
Tritanopia (blue-blind)
#2B3C35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3f0c;
/* rgb */ color: rgb(42, 63, 12);
/* oklch */ color: oklch(33.8% 0.079 129.4);
Tailwind
colors: {
  custom: {
    50: '#66744e',
    500: '#2a3f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f0c;
$custom-light: #66744e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f0c",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 12
  },
  "hsl": {
    "h": 84.706,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33811,
    "c": 0.07899,
    "h": 129.4
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#2A3F0C
secondary
#4C2C7B
accent
#3DEB85
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A3F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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