#2E4017#2E4017

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

Color values

HEX#2E4017
RGBrgb(46, 64, 23)
HSLhsl(86, 47%, 17%)
HSVhsv(86, 64%, 25%)
CMYKcmyk(28.1%, 0%, 64.1%, 74.9%)
CIE-LABlab(24.67, -15.29, 22.41)
CIE-LCHlch(24.67, 27.13, 124.31°)
OKLaboklab(34.53% -0.0429 0.0526)
OKLCHoklch(34.53% 0.068 129.2)
XYZxyz(3.1147, 4.3094, 1.4781)
Luminance0.0431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4017 #291740
analogous
#403E17 #2E4017 #1A4017
triadic
#2E4017 #172E40 #40172E
tetradic
#2E4017 #17403E #291740 #40171A
square
#2E4017 #17403E #291740 #40171A
split-complementary
#2E4017 #171A40 #3E1740
monochromatic
#101708 #101708 #2E4017 #4E6D27 #6F9A37

Accessibility & contrast

On white

11.28
#2E4017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4017
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4017#FFFFFF#000000##FFFFFF
##2E40171.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e4017;
/* rgb */ color: rgb(46, 64, 23);
/* oklch */ color: oklch(34.5% 0.068 129.2);
Tailwind
colors: {
  custom: {
    50: '#687555',
    500: '#2e4017',
    950: '#000000',
  },
}
SCSS
$custom: #2e4017;
$custom-light: #687555;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4017",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 23
  },
  "hsl": {
    "h": 86.341,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.34535,
    "c": 0.06785,
    "h": 129.2
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#2E4017
secondary
#563C77
accent
#51D78C
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2E4017

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

Preview Lab → · Contrast checker → · Palette generator →

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