#0C4E1B#0C4E1B

#0C4E1B is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.2% C 0.103 H 146.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#0C4E1B
RGBrgb(12, 78, 27)
HSLhsl(134, 73%, 18%)
HSVhsv(134, 85%, 31%)
CMYKcmyk(84.6%, 0%, 65.4%, 69.4%)
CIE-LABlab(28.40, -32.06, 24.16)
CIE-LCHlch(28.40, 40.14, 143.00°)
OKLaboklab(37.21% -0.0863 0.057)
OKLCHoklch(37.21% 0.103 146.5)
XYZxyz(3.0736, 5.6057, 1.9567)
Luminance0.0561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E1B #4E0C3F
analogous
#1E4E0C #0C4E1B #0C4E3C
triadic
#0C4E1B #1B0C4E #4E1B0C
tetradic
#0C4E1B #0C1E4E #4E0C3F #4E3C0C
square
#0C4E1B #0C1E4E #4E0C3F #4E3C0C
split-complementary
#0C4E1B #3C0C4E #4E0C1E
monochromatic
#041B09 #041B09 #0C4E1B #14832D #1CB840

Accessibility & contrast

On white

9.90
#0C4E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#0C4E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E1B
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E1B#FFFFFF#000000##FFFFFF
##0C4E1B1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4616
Deuteranopia (green-blind)
#48411F
Tritanopia (blue-blind)
#004C43
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e1b;
/* rgb */ color: rgb(12, 78, 27);
/* oklch */ color: oklch(37.2% 0.103 146.5);
Tailwind
colors: {
  custom: {
    50: '#588059',
    500: '#0c4e1b',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e1b;
$custom-light: #588059;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e1b",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 27
  },
  "hsl": {
    "h": 133.636,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.10345,
    "h": 146.5
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#0C4E1B
secondary
#8A2C74
accent
#38C6F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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