#0C4F15#0C4F15

#0C4F15 is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.4% C 0.110 H 144.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#0C4F15
RGBrgb(12, 79, 21)
HSLhsl(128, 74%, 18%)
HSVhsv(128, 85%, 31%)
CMYKcmyk(84.8%, 0%, 73.4%, 69%)
CIE-LABlab(28.70, -33.24, 27.57)
CIE-LCHlch(28.70, 43.18, 140.33°)
OKLaboklab(37.44% -0.0898 0.0636)
OKLCHoklch(37.44% 0.11 144.7)
XYZxyz(3.0827, 5.7239, 1.6517)
Luminance0.0572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F15 #4F0C46
analogous
#244F0C #0C4F15 #0C4F36
triadic
#0C4F15 #150C4F #4F150C
tetradic
#0C4F15 #0C244F #4F0C46 #4F360C
square
#0C4F15 #0C244F #4F0C46 #4F360C
split-complementary
#0C4F15 #360C4F #4F0C24
monochromatic
#041B07 #041B07 #0C4F15 #148423 #1CB931

Accessibility & contrast

On white

9.79
#0C4F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#0C4F15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F15
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F15#FFFFFF#000000##FFFFFF
##0C4F151.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51470D
Deuteranopia (green-blind)
#49421A
Tritanopia (blue-blind)
#004D43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f15;
/* rgb */ color: rgb(12, 79, 21);
/* oklch */ color: oklch(37.4% 0.110 144.7);
Tailwind
colors: {
  custom: {
    50: '#598155',
    500: '#0c4f15',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f15;
$custom-light: #598155;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f15",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 21
  },
  "hsl": {
    "h": 128.06,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37444,
    "c": 0.11003,
    "h": 144.7
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#0C4F15
secondary
#8B2C7E
accent
#38D7F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4F15

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

Preview Lab → · Contrast checker → · Palette generator →

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