#2E4018#2E4018

#2E4018 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.5% C 0.067 H 129.5°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2E4018
RGBrgb(46, 64, 24)
HSLhsl(87, 45%, 17%)
HSVhsv(87, 63%, 25%)
CMYKcmyk(28.1%, 0%, 62.5%, 74.9%)
CIE-LABlab(24.68, -15.17, 21.86)
CIE-LCHlch(24.68, 26.61, 124.77°)
OKLaboklab(34.55% -0.0424 0.0515)
OKLCHoklch(34.55% 0.067 129.5)
XYZxyz(3.1250, 4.3135, 1.5319)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4018 #2A1840
analogous
#403E18 #2E4018 #1A4018
triadic
#2E4018 #182E40 #40182E
tetradic
#2E4018 #18403E #2A1840 #40181A
square
#2E4018 #18403E #2A1840 #40181A
split-complementary
#2E4018 #181A40 #3E1840
monochromatic
#101608 #101608 #2E4018 #4E6D29 #6E9939

Accessibility & contrast

On white

11.27
#2E4018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E4018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4018
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4018#FFFFFF#000000##FFFFFF
##2E40181.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B14
Deuteranopia (green-blind)
#413A1B
Tritanopia (blue-blind)
#2F3D37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e4018;
/* rgb */ color: rgb(46, 64, 24);
/* oklch */ color: oklch(34.5% 0.067 129.5);
Tailwind
colors: {
  custom: {
    50: '#687556',
    500: '#2e4018',
    950: '#000000',
  },
}
SCSS
$custom: #2e4018;
$custom-light: #687556;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4018",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 24
  },
  "hsl": {
    "h": 87,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.3455,
    "c": 0.06675,
    "h": 129.5
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#2E4018
secondary
#573D77
accent
#53D58D
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2E4018

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

Preview Lab → · Contrast checker → · Palette generator →

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