#2A4010#2A4010

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

Color values

HEX#2A4010
RGBrgb(42, 64, 16)
HSLhsl(88, 60%, 16%)
HSVhsv(88, 75%, 25%)
CMYKcmyk(34.4%, 0%, 75%, 74.9%)
CIE-LABlab(24.31, -17.84, 25.64)
CIE-LCHlch(24.31, 31.24, 124.83°)
OKLaboklab(34.14% -0.0503 0.0586)
OKLCHoklch(34.14% 0.077 130.7)
XYZxyz(2.8817, 4.1964, 1.1483)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4010 #261040
analogous
#403E10 #2A4010 #124010
triadic
#2A4010 #102A40 #40102A
tetradic
#2A4010 #10403E #261040 #401012
square
#2A4010 #10403E #261040 #401012
split-complementary
#2A4010 #101240 #3E1040
monochromatic
#101806 #101806 #2A4010 #4A711C #6AA228

Accessibility & contrast

On white

11.42
#2A4010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4010
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4010#FFFFFF#000000##FFFFFF
##2A40101.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4010;
/* rgb */ color: rgb(42, 64, 16);
/* oklch */ color: oklch(34.1% 0.077 130.7);
Tailwind
colors: {
  custom: {
    50: '#667551',
    500: '#2a4010',
    950: '#000000',
  },
}
SCSS
$custom: #2a4010;
$custom-light: #667551;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4010",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 16
  },
  "hsl": {
    "h": 87.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.07722,
    "h": 130.7
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#2A4010
secondary
#53327A
accent
#45E38D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A4010

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

Preview Lab → · Contrast checker → · Palette generator →

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