#0C4F1A#0C4F1A

#0C4F1A is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.5% C 0.106 H 146.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#0C4F1A
RGBrgb(12, 79, 26)
HSLhsl(133, 74%, 18%)
HSVhsv(133, 85%, 31%)
CMYKcmyk(84.8%, 0%, 67.1%, 69%)
CIE-LABlab(28.76, -32.59, 25.11)
CIE-LCHlch(28.76, 41.14, 142.39°)
OKLaboklab(37.51% -0.0878 0.059)
OKLCHoklch(37.51% 0.106 146.1)
XYZxyz(3.1338, 5.7443, 1.9207)
Luminance0.0575 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F1A #4F0C41
analogous
#204F0C #0C4F1A #0C4F3B
triadic
#0C4F1A #1A0C4F #4F1A0C
tetradic
#0C4F1A #0C204F #4F0C41 #4F3B0C
square
#0C4F1A #0C204F #4F0C41 #4F3B0C
split-complementary
#0C4F1A #3B0C4F #4F0C20
monochromatic
#041B09 #041B09 #0C4F1A #14842B #1CB93D

Accessibility & contrast

On white

9.77
#0C4F1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#0C4F1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F1A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F1A#FFFFFF#000000##FFFFFF
##0C4F1A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504714
Deuteranopia (green-blind)
#49421E
Tritanopia (blue-blind)
#004D44
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f1a;
/* rgb */ color: rgb(12, 79, 26);
/* oklch */ color: oklch(37.5% 0.106 146.1);
Tailwind
colors: {
  custom: {
    50: '#588159',
    500: '#0c4f1a',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f1a;
$custom-light: #588159;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f1a",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 26
  },
  "hsl": {
    "h": 132.537,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37505,
    "c": 0.10575,
    "h": 146.1
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#0C4F1A
secondary
#8B2C77
accent
#38CAF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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