#0C4E28#0C4E28

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

Color values

HEX#0C4E28
RGBrgb(12, 78, 40)
HSLhsl(145, 73%, 18%)
HSVhsv(145, 85%, 31%)
CMYKcmyk(84.6%, 0%, 48.7%, 69.4%)
CIE-LABlab(28.59, -29.77, 16.94)
CIE-LCHlch(28.59, 34.25, 150.36°)
OKLaboklab(37.43% -0.08 0.0417)
OKLCHoklch(37.43% 0.09 152.5)
XYZxyz(3.2587, 5.6798, 2.9316)
Luminance0.0568 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E28 #4E0C32
analogous
#114E0C #0C4E28 #0C4E49
triadic
#0C4E28 #280C4E #4E280C
tetradic
#0C4E28 #0C114E #4E0C32 #4E490C
square
#0C4E28 #0C114E #4E0C32 #4E490C
split-complementary
#0C4E28 #490C4E #4E0C11
monochromatic
#041B0E #041B0E #0C4E28 #148343 #1CB85E

Accessibility & contrast

On white

9.83
#0C4E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4E28
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E28#FFFFFF#000000##FFFFFF
##0C4E281.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4725
Deuteranopia (green-blind)
#46412B
Tritanopia (blue-blind)
#004D45
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e28;
/* rgb */ color: rgb(12, 78, 40);
/* oklch */ color: oklch(37.4% 0.090 152.5);
Tailwind
colors: {
  custom: {
    50: '#588062',
    500: '#0c4e28',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e28;
$custom-light: #588062;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e28",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 40
  },
  "hsl": {
    "h": 145.455,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37432,
    "c": 0.09026,
    "h": 152.5
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#0C4E28
secondary
#8A2C62
accent
#38A2F0
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4E28

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

Preview Lab → · Contrast checker → · Palette generator →

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