#0C4A1B#0C4A1B

#0C4A1B is a dark, moderate green. Relative luminance 0.051; OKLCH L 36.0% C 0.098 H 147.0°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#0C4A1B
RGBrgb(12, 74, 27)
HSLhsl(135, 72%, 17%)
HSVhsv(135, 84%, 29%)
CMYKcmyk(83.8%, 0%, 63.5%, 71%)
CIE-LABlab(26.89, -30.48, 22.39)
CIE-LCHlch(26.89, 37.82, 143.70°)
OKLaboklab(35.96% -0.082 0.0532)
OKLCHoklch(35.96% 0.098 147)
XYZxyz(2.7980, 5.0545, 1.8649)
Luminance0.0505 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4A1B #4A0C3B
analogous
#1C4A0C #0C4A1B #0C4A3A
triadic
#0C4A1B #1B0C4A #4A1B0C
tetradic
#0C4A1B #0C1C4A #4A0C3B #4A3A0C
square
#0C4A1B #0C1C4A #4A0C3B #4A3A0C
split-complementary
#0C4A1B #3A0C4A #4A0C1C
monochromatic
#041A0A #041A0A #0C4A1B #157F2E #1DB341

Accessibility & contrast

On white

10.44
#0C4A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4A1B
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4A1B#FFFFFF#000000##FFFFFF
##0C4A1B1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4316
Deuteranopia (green-blind)
#443E1F
Tritanopia (blue-blind)
#004840
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #0c4a1b;
/* rgb */ color: rgb(12, 74, 27);
/* oklch */ color: oklch(36.0% 0.098 147.0);
Tailwind
colors: {
  custom: {
    50: '#577d59',
    500: '#0c4a1b',
    950: '#000000',
  },
}
SCSS
$custom: #0c4a1b;
$custom-light: #577d59;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4a1b",
  "rgb": {
    "r": 12,
    "g": 74,
    "b": 27
  },
  "hsl": {
    "h": 134.516,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.35959,
    "c": 0.09778,
    "h": 147
  },
  "luminance": 0.05055
}

Semantic roles & 50–950 ramp

primary
#0C4A1B
secondary
#862C70
accent
#39C3EF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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