#2D3F12#2D3F12

#2D3F12 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.072 H 128.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#2D3F12
RGBrgb(45, 63, 18)
HSLhsl(84, 56%, 16%)
HSVhsv(84, 71%, 25%)
CMYKcmyk(28.6%, 0%, 71.4%, 75.3%)
CIE-LABlab(24.18, -15.73, 24.55)
CIE-LCHlch(24.18, 29.16, 122.65°)
OKLaboklab(34.1% -0.0445 0.0565)
OKLCHoklch(34.1% 0.072 128.3)
XYZxyz(2.9689, 4.1565, 1.2180)
Luminance0.0416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F12 #24123F
analogous
#3F3A12 #2D3F12 #163F12
triadic
#2D3F12 #122D3F #3F122D
tetradic
#2D3F12 #123F3A #24123F #3F1216
square
#2D3F12 #123F3A #24123F #3F1216
split-complementary
#2D3F12 #12163F #3A123F
monochromatic
#111807 #111807 #2D3F12 #4F6F20 #719E2D

Accessibility & contrast

On white

11.47
#2D3F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D3F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F12
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F12#FFFFFF#000000##FFFFFF
##2D3F121.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0D
Deuteranopia (green-blind)
#403915
Tritanopia (blue-blind)
#2F3C36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d3f12;
/* rgb */ color: rgb(45, 63, 18);
/* oklch */ color: oklch(34.1% 0.072 128.3);
Tailwind
colors: {
  custom: {
    50: '#687452',
    500: '#2d3f12',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f12;
$custom-light: #687452;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f12",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 18
  },
  "hsl": {
    "h": 84,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34103,
    "c": 0.07196,
    "h": 128.3
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#2D3F12
secondary
#503578
accent
#49DF85
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D3F12

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

Preview Lab → · Contrast checker → · Palette generator →

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