#0C4C1C#0C4C1C

#0C4C1C is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.6% C 0.100 H 147.2°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#0C4C1C
RGBrgb(12, 76, 28)
HSLhsl(135, 73%, 17%)
HSVhsv(135, 84%, 30%)
CMYKcmyk(84.2%, 0%, 63.2%, 70.2%)
CIE-LABlab(27.66, -31.12, 22.75)
CIE-LCHlch(27.66, 38.55, 143.84°)
OKLaboklab(36.6% -0.0837 0.0541)
OKLCHoklch(36.6% 0.1 147.2)
XYZxyz(2.9454, 5.3305, 1.9720)
Luminance0.0533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4C1C #4C0C3C
analogous
#1C4C0C #0C4C1C #0C4C3C
triadic
#0C4C1C #1C0C4C #4C1C0C
tetradic
#0C4C1C #0C1C4C #4C0C3C #4C3C0C
square
#0C4C1C #0C1C4C #4C0C3C #4C3C0C
split-complementary
#0C4C1C #3C0C4C #4C0C1C
monochromatic
#041A0A #041A0A #0C4C1C #14812F #1DB643

Accessibility & contrast

On white

10.16
#0C4C1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#0C4C1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4C1C
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4C1C#FFFFFF#000000##FFFFFF
##0C4C1C1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4417
Deuteranopia (green-blind)
#463F20
Tritanopia (blue-blind)
#004A41
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4c1c;
/* rgb */ color: rgb(12, 76, 28);
/* oklch */ color: oklch(36.6% 0.100 147.2);
Tailwind
colors: {
  custom: {
    50: '#577f5a',
    500: '#0c4c1c',
    950: '#000000',
  },
}
SCSS
$custom: #0c4c1c;
$custom-light: #577f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4c1c",
  "rgb": {
    "r": 12,
    "g": 76,
    "b": 28
  },
  "hsl": {
    "h": 135,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36599,
    "c": 0.09968,
    "h": 147.2
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#0C4C1C
secondary
#882C71
accent
#38C2EF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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