#0C4C1A#0C4C1A

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

Color values

HEX#0C4C1A
RGBrgb(12, 76, 26)
HSLhsl(133, 73%, 17%)
HSVhsv(133, 84%, 30%)
CMYKcmyk(84.2%, 0%, 65.8%, 70.2%)
CIE-LABlab(27.63, -31.43, 23.81)
CIE-LCHlch(27.63, 39.43, 142.85°)
OKLaboklab(36.57% -0.0846 0.0562)
OKLCHoklch(36.57% 0.102 146.4)
XYZxyz(2.9223, 5.3213, 1.8502)
Luminance0.0532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4C1A #4C0C3E
analogous
#1E4C0C #0C4C1A #0C4C3A
triadic
#0C4C1A #1A0C4C #4C1A0C
tetradic
#0C4C1A #0C1E4C #4C0C3E #4C3A0C
square
#0C4C1A #0C1E4C #4C0C3E #4C3A0C
split-complementary
#0C4C1A #3A0C4C #4C0C1E
monochromatic
#041A09 #041A09 #0C4C1A #14812C #1DB63E

Accessibility & contrast

On white

10.17
#0C4C1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4C1A
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4C1A#FFFFFF#000000##FFFFFF
##0C4C1A1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c4c1a;
/* rgb */ color: rgb(12, 76, 26);
/* oklch */ color: oklch(36.6% 0.102 146.4);
Tailwind
colors: {
  custom: {
    50: '#587f58',
    500: '#0c4c1a',
    950: '#000000',
  },
}
SCSS
$custom: #0c4c1a;
$custom-light: #587f58;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4c1a",
  "rgb": {
    "r": 12,
    "g": 76,
    "b": 26
  },
  "hsl": {
    "h": 133.125,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.3657,
    "c": 0.10158,
    "h": 146.4
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#0C4C1A
secondary
#882C74
accent
#38C7EF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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