#0C4F0F#0C4F0F

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

Color values

HEX#0C4F0F
RGBrgb(12, 79, 15)
HSLhsl(123, 74%, 18%)
HSVhsv(123, 85%, 31%)
CMYKcmyk(84.8%, 0%, 81%, 69%)
CIE-LABlab(28.65, -33.87, 30.21)
CIE-LCHlch(28.65, 45.39, 138.27°)
OKLaboklab(37.39% -0.0918 0.0683)
OKLCHoklch(37.39% 0.114 143.3)
XYZxyz(3.0336, 5.7043, 1.3930)
Luminance0.0570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F0F #4F0C4C
analogous
#2A4F0C #0C4F0F #0C4F31
triadic
#0C4F0F #0F0C4F #4F0F0C
tetradic
#0C4F0F #0C2A4F #4F0C4C #4F310C
square
#0C4F0F #0C2A4F #4F0C4C #4F310C
split-complementary
#0C4F0F #310C4F #4F0C2A
monochromatic
#041B05 #041B05 #0C4F0F #148419 #1CB923

Accessibility & contrast

On white

9.81
#0C4F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4F0F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F0F#FFFFFF#000000##FFFFFF
##0C4F0F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514704
Deuteranopia (green-blind)
#4A4216
Tritanopia (blue-blind)
#004C43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f0f;
/* rgb */ color: rgb(12, 79, 15);
/* oklch */ color: oklch(37.4% 0.114 143.3);
Tailwind
colors: {
  custom: {
    50: '#598152',
    500: '#0c4f0f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f0f;
$custom-light: #598152;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f0f",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 122.687,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37385,
    "c": 0.11443,
    "h": 143.3
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0C4F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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