#0C4F2A#0C4F2A

#0C4F2A is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.8% C 0.090 H 153.3°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#0C4F2A
RGBrgb(12, 79, 42)
HSLhsl(147, 74%, 18%)
HSVhsv(147, 85%, 31%)
CMYKcmyk(84.8%, 0%, 46.8%, 69%)
CIE-LABlab(29.00, -29.77, 16.25)
CIE-LCHlch(29.00, 33.92, 151.37°)
OKLaboklab(37.78% -0.0801 0.0402)
OKLCHoklch(37.78% 0.09 153.3)
XYZxyz(3.3652, 5.8369, 3.1393)
Luminance0.0584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F2A #4F0C31
analogous
#0F4F0C #0C4F2A #0C4F4B
triadic
#0C4F2A #2A0C4F #4F2A0C
tetradic
#0C4F2A #0C0F4F #4F0C31 #4F4B0C
square
#0C4F2A #0C0F4F #4F0C31 #4F4B0C
split-complementary
#0C4F2A #4B0C4F #4F0C0F
monochromatic
#041B0E #041B0E #0C4F2A #148446 #1CB962

Accessibility & contrast

On white

9.69
#0C4F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#0C4F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F2A
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F2A#FFFFFF#000000##FFFFFF
##0C4F2A1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4827
Deuteranopia (green-blind)
#47422D
Tritanopia (blue-blind)
#004E46
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f2a;
/* rgb */ color: rgb(12, 79, 42);
/* oklch */ color: oklch(37.8% 0.090 153.3);
Tailwind
colors: {
  custom: {
    50: '#588164',
    500: '#0c4f2a',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f2a;
$custom-light: #588164;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f2a",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 42
  },
  "hsl": {
    "h": 146.866,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37781,
    "c": 0.08962,
    "h": 153.3
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#0C4F2A
secondary
#8B2C60
accent
#389EF0
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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