#0C4C0F#0C4C0F

#0C4C0F is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.4% C 0.111 H 143.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#0C4C0F
RGBrgb(12, 76, 15)
HSLhsl(123, 73%, 17%)
HSVhsv(123, 84%, 30%)
CMYKcmyk(84.2%, 0%, 80.3%, 70.2%)
CIE-LABlab(27.52, -32.76, 29.06)
CIE-LCHlch(27.52, 43.80, 138.43°)
OKLaboklab(36.44% -0.0888 0.0659)
OKLCHoklch(36.44% 0.111 143.4)
XYZxyz(2.8221, 5.2812, 1.3225)
Luminance0.0528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4C0F #4C0C49
analogous
#294C0C #0C4C0F #0C4C2F
triadic
#0C4C0F #0F0C4C #4C0F0C
tetradic
#0C4C0F #0C294C #4C0C49 #4C2F0C
square
#0C4C0F #0C294C #4C0C49 #4C2F0C
split-complementary
#0C4C0F #2F0C4C #4C0C29
monochromatic
#041A05 #041A05 #0C4C0F #148119 #1DB624

Accessibility & contrast

On white

10.21
#0C4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#0C4C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4C0F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4C0F#FFFFFF#000000##FFFFFF
##0C4C0F1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4405
Deuteranopia (green-blind)
#473F15
Tritanopia (blue-blind)
#004A40
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4c0f;
/* rgb */ color: rgb(12, 76, 15);
/* oklch */ color: oklch(36.4% 0.111 143.4);
Tailwind
colors: {
  custom: {
    50: '#587f52',
    500: '#0c4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4c0f;
$custom-light: #587f52;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4c0f",
  "rgb": {
    "r": 12,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 122.813,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36444,
    "c": 0.11059,
    "h": 143.4
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#0C4C0F
secondary
#882C83
accent
#38E7EF
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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