#0C4E1F#0C4E1F

#0C4E1F is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.3% C 0.100 H 148.0°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#0C4E1F
RGBrgb(12, 78, 31)
HSLhsl(137, 73%, 18%)
HSVhsv(137, 85%, 31%)
CMYKcmyk(84.6%, 0%, 60.3%, 69.4%)
CIE-LABlab(28.45, -31.44, 22.02)
CIE-LCHlch(28.45, 38.38, 144.99°)
OKLaboklab(37.27% -0.0845 0.0527)
OKLCHoklch(37.27% 0.1 148)
XYZxyz(3.1231, 5.6255, 2.2173)
Luminance0.0563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E1F #4E0C3B
analogous
#1A4E0C #0C4E1F #0C4E40
triadic
#0C4E1F #1F0C4E #4E1F0C
tetradic
#0C4E1F #0C1A4E #4E0C3B #4E400C
square
#0C4E1F #0C1A4E #4E0C3B #4E400C
split-complementary
#0C4E1F #400C4E #4E0C1A
monochromatic
#041B0B #041B0B #0C4E1F #148334 #1CB849

Accessibility & contrast

On white

9.88
#0C4E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#0C4E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E1F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E1F#FFFFFF#000000##FFFFFF
##0C4E1F1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F461B
Deuteranopia (green-blind)
#474123
Tritanopia (blue-blind)
#004C43
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e1f;
/* rgb */ color: rgb(12, 78, 31);
/* oklch */ color: oklch(37.3% 0.100 148.0);
Tailwind
colors: {
  custom: {
    50: '#58805c',
    500: '#0c4e1f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e1f;
$custom-light: #58805c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e1f",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 31
  },
  "hsl": {
    "h": 137.273,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37268,
    "c": 0.0996,
    "h": 148
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#0C4E1F
secondary
#8A2C6F
accent
#38BBF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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