#0C4C1B#0C4C1B

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

Color values

HEX#0C4C1B
RGBrgb(12, 76, 27)
HSLhsl(134, 73%, 17%)
HSVhsv(134, 84%, 30%)
CMYKcmyk(84.2%, 0%, 64.5%, 70.2%)
CIE-LABlab(27.64, -31.28, 23.28)
CIE-LCHlch(27.64, 38.99, 143.34°)
OKLaboklab(36.58% -0.0842 0.0551)
OKLCHoklch(36.58% 0.101 146.8)
XYZxyz(2.9337, 5.3258, 1.9101)
Luminance0.0533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4C1B #4C0C3D
analogous
#1D4C0C #0C4C1B #0C4C3B
triadic
#0C4C1B #1B0C4C #4C1B0C
tetradic
#0C4C1B #0C1D4C #4C0C3D #4C3B0C
square
#0C4C1B #0C1D4C #4C0C3D #4C3B0C
split-complementary
#0C4C1B #3B0C4C #4C0C1D
monochromatic
#041A09 #041A09 #0C4C1B #14812E #1DB641

Accessibility & contrast

On white

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

On black

2.07
#0C4C1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##0C4C1B#FFFFFF#000000##FFFFFF
##0C4C1B1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c4c1b;
/* rgb */ color: rgb(12, 76, 27);
/* oklch */ color: oklch(36.6% 0.101 146.8);
Tailwind
colors: {
  custom: {
    50: '#577f59',
    500: '#0c4c1b',
    950: '#000000',
  },
}
SCSS
$custom: #0c4c1b;
$custom-light: #577f59;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4c1b",
  "rgb": {
    "r": 12,
    "g": 76,
    "b": 27
  },
  "hsl": {
    "h": 134.063,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36584,
    "c": 0.10064,
    "h": 146.8
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#0C4C1B
secondary
#882C72
accent
#38C5EF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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