#2E400F#2E400F

#2E400F is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.076 H 127.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2E400F
RGBrgb(46, 64, 15)
HSLhsl(82, 62%, 15%)
HSVhsv(82, 77%, 25%)
CMYKcmyk(28.1%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.58, -16.10, 26.50)
CIE-LCHlch(24.58, 31.01, 121.28°)
OKLaboklab(34.44% -0.0459 0.0601)
OKLCHoklch(34.44% 0.076 127.4)
XYZxyz(3.0463, 4.2821, 1.1179)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E400F #210F40
analogous
#40390F #2E400F #15400F
triadic
#2E400F #0F2E40 #400F2E
tetradic
#2E400F #0F4039 #210F40 #400F15
square
#2E400F #0F4039 #210F40 #400F15
split-complementary
#2E400F #0F1540 #390F40
monochromatic
#121906 #121906 #2E400F #52721B #75A326

Accessibility & contrast

On white

11.31
#2E400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E400F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E400F#FFFFFF#000000##FFFFFF
##2E400F1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B08
Deuteranopia (green-blind)
#413A13
Tritanopia (blue-blind)
#303D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e400f;
/* rgb */ color: rgb(46, 64, 15);
/* oklch */ color: oklch(34.4% 0.076 127.4);
Tailwind
colors: {
  custom: {
    50: '#697550',
    500: '#2e400f',
    950: '#000000',
  },
}
SCSS
$custom: #2e400f;
$custom-light: #697550;
$custom-dark: #000000;
JSON
{
  "hex": "#2e400f",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 82.041,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34437,
    "c": 0.07568,
    "h": 127.4
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#2E400F
secondary
#4C307A
accent
#43E57E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2E400F

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

Preview Lab → · Contrast checker → · Palette generator →

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