#2D4215#2D4215

#2D4215 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.0% C 0.074 H 130.5°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D4215
RGBrgb(45, 66, 21)
HSLhsl(88, 52%, 17%)
HSVhsv(88, 68%, 26%)
CMYKcmyk(31.8%, 0%, 68.2%, 74.1%)
CIE-LABlab(25.29, -17.08, 24.19)
CIE-LCHlch(25.29, 29.61, 125.23°)
OKLaboklab(35.01% -0.048 0.0562)
OKLCHoklch(35.01% 0.074 130.5)
XYZxyz(3.1657, 4.5084, 1.4127)
Luminance0.0451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4215 #2A1542
analogous
#424115 #2D4215 #174215
triadic
#2D4215 #152D42 #42152D
tetradic
#2D4215 #154241 #2A1542 #421517
square
#2D4215 #154241 #2A1542 #421517
split-complementary
#2D4215 #151742 #411542
monochromatic
#101707 #101707 #2D4215 #4D7024 #6C9F33

Accessibility & contrast

On white

11.04
#2D4215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D4215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4215
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4215#FFFFFF#000000##FFFFFF
##2D42151.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D10
Deuteranopia (green-blind)
#423B18
Tritanopia (blue-blind)
#2E3F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d4215;
/* rgb */ color: rgb(45, 66, 21);
/* oklch */ color: oklch(35.0% 0.074 130.5);
Tailwind
colors: {
  custom: {
    50: '#687654',
    500: '#2d4215',
    950: '#000000',
  },
}
SCSS
$custom: #2d4215;
$custom-light: #687654;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4215",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 21
  },
  "hsl": {
    "h": 88,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35008,
    "c": 0.07385,
    "h": 130.5
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#2D4215
secondary
#57397A
accent
#4DDB8F
background
#F6F7F4
surface
#EBEDE8
border
#C6C8C4
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2D4215

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

Preview Lab → · Contrast checker → · Palette generator →

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