#0C4A0F#0C4A0F

#0C4A0F is a dark, moderate green. Relative luminance 0.050; OKLCH L 35.8% C 0.108 H 143.4°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#0C4A0F
RGBrgb(12, 74, 15)
HSLhsl(123, 72%, 17%)
HSVhsv(123, 84%, 29%)
CMYKcmyk(83.8%, 0%, 79.7%, 71%)
CIE-LABlab(26.76, -32.02, 28.29)
CIE-LCHlch(26.76, 42.72, 138.54°)
OKLaboklab(35.81% -0.0867 0.0643)
OKLCHoklch(35.81% 0.108 143.4)
XYZxyz(2.6864, 5.0099, 1.2773)
Luminance0.0501 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4A0F #4A0C47
analogous
#284A0C #0C4A0F #0C4A2E
triadic
#0C4A0F #0F0C4A #4A0F0C
tetradic
#0C4A0F #0C284A #4A0C47 #4A2E0C
square
#0C4A0F #0C284A #4A0C47 #4A2E0C
split-complementary
#0C4A0F #2E0C4A #4A0C28
monochromatic
#041A05 #041A05 #0C4A0F #157F1A #1DB324

Accessibility & contrast

On white

10.49
#0C4A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#0C4A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4A0F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4A0F#FFFFFF#000000##FFFFFF
##0C4A0F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4206
Deuteranopia (green-blind)
#453D15
Tritanopia (blue-blind)
#00483E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #0c4a0f;
/* rgb */ color: rgb(12, 74, 15);
/* oklch */ color: oklch(35.8% 0.108 143.4);
Tailwind
colors: {
  custom: {
    50: '#587d51',
    500: '#0c4a0f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4a0f;
$custom-light: #587d51;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4a0f",
  "rgb": {
    "r": 12,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 122.903,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.35813,
    "c": 0.10799,
    "h": 143.4
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#0C4A0F
secondary
#862C81
accent
#39E6EF
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C4A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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