#0C4A18#0C4A18

#0C4A18 is a dark, moderate green. Relative luminance 0.050; OKLCH L 35.9% C 0.101 H 145.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#0C4A18
RGBrgb(12, 74, 24)
HSLhsl(132, 72%, 17%)
HSVhsv(132, 84%, 29%)
CMYKcmyk(83.8%, 0%, 67.6%, 71%)
CIE-LABlab(26.85, -30.93, 23.98)
CIE-LCHlch(26.85, 39.14, 142.21°)
OKLaboklab(35.92% -0.0834 0.0564)
OKLCHoklch(35.92% 0.101 145.9)
XYZxyz(2.7651, 5.0413, 1.6913)
Luminance0.0504 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4A18 #4A0C3E
analogous
#1F4A0C #0C4A18 #0C4A37
triadic
#0C4A18 #180C4A #4A180C
tetradic
#0C4A18 #0C1F4A #4A0C3E #4A370C
square
#0C4A18 #0C1F4A #4A0C3E #4A370C
split-complementary
#0C4A18 #370C4A #4A0C1F
monochromatic
#041A09 #041A09 #0C4A18 #157F29 #1DB33A

Accessibility & contrast

On white

10.46
#0C4A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#0C4A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4A18
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4A18#FFFFFF#000000##FFFFFF
##0C4A181.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4213
Deuteranopia (green-blind)
#443E1C
Tritanopia (blue-blind)
#00483F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #0c4a18;
/* rgb */ color: rgb(12, 74, 24);
/* oklch */ color: oklch(35.9% 0.101 145.9);
Tailwind
colors: {
  custom: {
    50: '#577d57',
    500: '#0c4a18',
    950: '#000000',
  },
}
SCSS
$custom: #0c4a18;
$custom-light: #577d57;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4a18",
  "rgb": {
    "r": 12,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 131.613,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.35916,
    "c": 0.10062,
    "h": 145.9
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#0C4A18
secondary
#862C74
accent
#39CCEF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4A18

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

Preview Lab → · Contrast checker → · Palette generator →

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