#0C4F2D#0C4F2D

#0C4F2D is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.8% C 0.086 H 155.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#0C4F2D
RGBrgb(12, 79, 45)
HSLhsl(150, 74%, 18%)
HSVhsv(150, 85%, 31%)
CMYKcmyk(84.8%, 0%, 43%, 69%)
CIE-LABlab(29.05, -29.12, 14.50)
CIE-LCHlch(29.05, 32.53, 153.53°)
OKLaboklab(37.85% -0.0785 0.0362)
OKLCHoklch(37.85% 0.086 155.3)
XYZxyz(3.4209, 5.8592, 3.4328)
Luminance0.0586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F2D #4F0C2E
analogous
#0D4F0C #0C4F2D #0C4F4E
triadic
#0C4F2D #2D0C4F #4F2D0C
tetradic
#0C4F2D #0C0D4F #4F0C2E #4F4E0C
square
#0C4F2D #0C0D4F #4F0C2E #4F4E0C
split-complementary
#0C4F2D #4E0C4F #4F0C0D
monochromatic
#041B0F #041B0F #0C4F2D #14844B #1CB96A

Accessibility & contrast

On white

9.67
#0C4F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4F2D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F2D#FFFFFF#000000##FFFFFF
##0C4F2D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c4f2d;
/* rgb */ color: rgb(12, 79, 45);
/* oklch */ color: oklch(37.8% 0.086 155.3);
Tailwind
colors: {
  custom: {
    50: '#588166',
    500: '#0c4f2d',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f2d;
$custom-light: #588166;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f2d",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 45
  },
  "hsl": {
    "h": 149.552,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37847,
    "c": 0.08642,
    "h": 155.3
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#0C4F2D
secondary
#8B2C5C
accent
#3895F0
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C4F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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