#0C4E0F#0C4E0F

#0C4E0F is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.1% C 0.113 H 143.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#0C4E0F
RGBrgb(12, 78, 15)
HSLhsl(123, 73%, 18%)
HSVhsv(123, 85%, 31%)
CMYKcmyk(84.6%, 0%, 80.8%, 69.4%)
CIE-LABlab(28.28, -33.50, 29.83)
CIE-LCHlch(28.28, 44.86, 138.32°)
OKLaboklab(37.07% -0.0908 0.0675)
OKLCHoklch(37.07% 0.113 143.4)
XYZxyz(2.9620, 5.5611, 1.3691)
Luminance0.0556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E0F #4E0C4B
analogous
#2A4E0C #0C4E0F #0C4E30
triadic
#0C4E0F #0F0C4E #4E0F0C
tetradic
#0C4E0F #0C2A4E #4E0C4B #4E300C
square
#0C4E0F #0C2A4E #4E0C4B #4E300C
split-complementary
#0C4E0F #300C4E #4E0C2A
monochromatic
#041B05 #041B05 #0C4E0F #148319 #1CB823

Accessibility & contrast

On white

9.94
#0C4E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#0C4E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E0F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E0F#FFFFFF#000000##FFFFFF
##0C4E0F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504604
Deuteranopia (green-blind)
#494116
Tritanopia (blue-blind)
#004C42
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e0f;
/* rgb */ color: rgb(12, 78, 15);
/* oklch */ color: oklch(37.1% 0.113 143.4);
Tailwind
colors: {
  custom: {
    50: '#598052',
    500: '#0c4e0f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e0f;
$custom-light: #598052;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e0f",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 15
  },
  "hsl": {
    "h": 122.727,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37072,
    "c": 0.11316,
    "h": 143.4
  },
  "luminance": 0.05561
}

Semantic roles & 50–950 ramp

primary
#0C4E0F
secondary
#8A2C85
accent
#38E8F0
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C4E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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