#2D4017#2D4017

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

Color values

HEX#2D4017
RGBrgb(45, 64, 23)
HSLhsl(88, 47%, 17%)
HSVhsv(88, 64%, 25%)
CMYKcmyk(29.7%, 0%, 64.1%, 74.9%)
CIE-LABlab(24.60, -15.75, 22.31)
CIE-LCHlch(24.60, 27.31, 125.22°)
OKLaboklab(34.46% -0.0441 0.0524)
OKLCHoklch(34.46% 0.068 130.1)
XYZxyz(3.0702, 4.2865, 1.4761)
Luminance0.0429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4017 #2A1740
analogous
#403F17 #2D4017 #194017
triadic
#2D4017 #172D40 #40172D
tetradic
#2D4017 #17403F #2A1740 #401719
square
#2D4017 #17403F #2A1740 #401719
split-complementary
#2D4017 #171940 #3F1740
monochromatic
#101708 #101708 #2D4017 #4D6D27 #6C9A37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D4017#FFFFFF#000000##FFFFFF
##2D40171.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)
#433B13
Deuteranopia (green-blind)
#403A1A
Tritanopia (blue-blind)
#2E3D37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d4017;
/* rgb */ color: rgb(45, 64, 23);
/* oklch */ color: oklch(34.5% 0.068 130.1);
Tailwind
colors: {
  custom: {
    50: '#677555',
    500: '#2d4017',
    950: '#000000',
  },
}
SCSS
$custom: #2d4017;
$custom-light: #677555;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4017",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 23
  },
  "hsl": {
    "h": 87.805,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.34458,
    "c": 0.06845,
    "h": 130.1
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#2D4017
secondary
#573C77
accent
#51D78F
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2D4017

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

Preview Lab → · Contrast checker → · Palette generator →

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