#2A400B#2A400B

#2A400B is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.081 H 129.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2A400B
RGBrgb(42, 64, 11)
HSLhsl(85, 71%, 15%)
HSVhsv(85, 83%, 25%)
CMYKcmyk(34.4%, 0%, 82.8%, 74.9%)
CIE-LABlab(24.27, -18.26, 27.91)
CIE-LCHlch(24.27, 33.35, 123.19°)
OKLaboklab(34.1% -0.0519 0.0625)
OKLCHoklch(34.1% 0.081 129.7)
XYZxyz(2.8486, 4.1831, 0.9739)
Luminance0.0418 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A400B #210B40
analogous
#403C0B #2A400B #0F400B
triadic
#2A400B #0B2A40 #400B2A
tetradic
#2A400B #0B403C #210B40 #400B0F
square
#2A400B #0B403C #210B40 #400B0F
split-complementary
#2A400B #0B0F40 #3C0B40
monochromatic
#111A04 #111A04 #2A400B #4C7414 #6FA81D

Accessibility & contrast

On white

11.43
#2A400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A400B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A400B
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A400B#FFFFFF#000000##FFFFFF
##2A400B1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B03
Deuteranopia (green-blind)
#403910
Tritanopia (blue-blind)
#2B3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a400b;
/* rgb */ color: rgb(42, 64, 11);
/* oklch */ color: oklch(34.1% 0.081 129.7);
Tailwind
colors: {
  custom: {
    50: '#66754e',
    500: '#2a400b',
    950: '#000000',
  },
}
SCSS
$custom: #2a400b;
$custom-light: #66754e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a400b",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 84.906,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.08125,
    "h": 129.7
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#2A400B
secondary
#4C2A7D
accent
#3AED85
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A400B

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

Preview Lab → · Contrast checker → · Palette generator →

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