#2A3F0F#2A3F0F

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

Color values

HEX#2A3F0F
RGBrgb(42, 63, 15)
HSLhsl(86, 62%, 15%)
HSVhsv(86, 76%, 25%)
CMYKcmyk(33.3%, 0%, 76.2%, 75.3%)
CIE-LABlab(23.94, -17.39, 25.74)
CIE-LCHlch(23.94, 31.07, 124.04°)
OKLaboklab(33.84% -0.0492 0.0586)
OKLCHoklch(33.84% 0.077 130)
XYZxyz(2.8186, 4.0817, 1.0912)
Luminance0.0408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F0F #240F3F
analogous
#3F3C0F #2A3F0F #123F0F
triadic
#2A3F0F #0F2A3F #3F0F2A
tetradic
#2A3F0F #0F3F3C #240F3F #3F0F12
square
#2A3F0F #0F3F3C #240F3F #3F0F12
split-complementary
#2A3F0F #0F123F #3C0F3F
monochromatic
#101906 #101906 #2A3F0F #4B701B #6CA227

Accessibility & contrast

On white

11.56
#2A3F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A3F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F0F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F0F#FFFFFF#000000##FFFFFF
##2A3F0F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3f0f;
/* rgb */ color: rgb(42, 63, 15);
/* oklch */ color: oklch(33.8% 0.077 130.0);
Tailwind
colors: {
  custom: {
    50: '#667450',
    500: '#2a3f0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f0f;
$custom-light: #667450;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f0f",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 15
  },
  "hsl": {
    "h": 86.25,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33841,
    "c": 0.07652,
    "h": 130
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#2A3F0F
secondary
#503079
accent
#43E58A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A3F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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