#0C4D1F#0C4D1F

#0C4D1F is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.0% C 0.098 H 148.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#0C4D1F
RGBrgb(12, 77, 31)
HSLhsl(138, 73%, 17%)
HSVhsv(138, 84%, 30%)
CMYKcmyk(84.4%, 0%, 59.7%, 69.8%)
CIE-LABlab(28.07, -31.04, 21.57)
CIE-LCHlch(28.07, 37.79, 145.21°)
OKLaboklab(36.96% -0.0834 0.0517)
OKLCHoklch(36.96% 0.098 148.2)
XYZxyz(3.0526, 5.4845, 2.1938)
Luminance0.0549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4D1F #4D0C3A
analogous
#1A4D0C #0C4D1F #0C4D3F
triadic
#0C4D1F #1F0C4D #4D1F0C
tetradic
#0C4D1F #0C1A4D #4D0C3A #4D3F0C
square
#0C4D1F #0C1A4D #4D0C3A #4D3F0C
split-complementary
#0C4D1F #3F0C4D #4D0C1A
monochromatic
#041A0B #041A0B #0C4D1F #148234 #1DB74A

Accessibility & contrast

On white

10.01
#0C4D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#0C4D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4D1F
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4D1F#FFFFFF#000000##FFFFFF
##0C4D1F1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E451B
Deuteranopia (green-blind)
#464023
Tritanopia (blue-blind)
#004B43
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #0c4d1f;
/* rgb */ color: rgb(12, 77, 31);
/* oklch */ color: oklch(37.0% 0.098 148.2);
Tailwind
colors: {
  custom: {
    50: '#587f5c',
    500: '#0c4d1f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4d1f;
$custom-light: #587f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4d1f",
  "rgb": {
    "r": 12,
    "g": 77,
    "b": 31
  },
  "hsl": {
    "h": 137.538,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36957,
    "c": 0.09816,
    "h": 148.2
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

primary
#0C4D1F
secondary
#892C6E
accent
#38BAF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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