#0C4D28#0C4D28

#0C4D28 is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.1% C 0.089 H 152.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#0C4D28
RGBrgb(12, 77, 40)
HSLhsl(146, 73%, 17%)
HSVhsv(146, 84%, 30%)
CMYKcmyk(84.4%, 0%, 48.1%, 69.8%)
CIE-LABlab(28.22, -29.34, 16.45)
CIE-LCHlch(28.22, 33.64, 150.72°)
OKLaboklab(37.12% -0.0789 0.0406)
OKLCHoklch(37.12% 0.089 152.8)
XYZxyz(3.1882, 5.5387, 2.9081)
Luminance0.0554 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4D28 #4D0C31
analogous
#114D0C #0C4D28 #0C4D49
triadic
#0C4D28 #280C4D #4D280C
tetradic
#0C4D28 #0C114D #4D0C31 #4D490C
square
#0C4D28 #0C114D #4D0C31 #4D490C
split-complementary
#0C4D28 #490C4D #4D0C11
monochromatic
#041A0E #041A0E #0C4D28 #148244 #1DB75F

Accessibility & contrast

On white

9.96
#0C4D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#0C4D28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4D28
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4D28#FFFFFF#000000##FFFFFF
##0C4D281.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4625
Deuteranopia (green-blind)
#46402B
Tritanopia (blue-blind)
#004C44
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4d28;
/* rgb */ color: rgb(12, 77, 40);
/* oklch */ color: oklch(37.1% 0.089 152.8);
Tailwind
colors: {
  custom: {
    50: '#577f62',
    500: '#0c4d28',
    950: '#000000',
  },
}
SCSS
$custom: #0c4d28;
$custom-light: #577f62;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4d28",
  "rgb": {
    "r": 12,
    "g": 77,
    "b": 40
  },
  "hsl": {
    "h": 145.846,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.08876,
    "h": 152.8
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#0C4D28
secondary
#892C61
accent
#38A1F0
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4D28

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

Preview Lab → · Contrast checker → · Palette generator →

#0C4D28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva