#0C4F2B#0C4F2B

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

Color values

HEX#0C4F2B
RGBrgb(12, 79, 43)
HSLhsl(148, 74%, 18%)
HSVhsv(148, 85%, 31%)
CMYKcmyk(84.8%, 0%, 45.6%, 69%)
CIE-LABlab(29.02, -29.56, 15.67)
CIE-LCHlch(29.02, 33.45, 152.07°)
OKLaboklab(37.8% -0.0796 0.0389)
OKLCHoklch(37.8% 0.089 154)
XYZxyz(3.3833, 5.8441, 3.2347)
Luminance0.0585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F2B #4F0C30
analogous
#0F4F0C #0C4F2B #0C4F4C
triadic
#0C4F2B #2B0C4F #4F2B0C
tetradic
#0C4F2B #0C0F4F #4F0C30 #4F4C0C
square
#0C4F2B #0C0F4F #4F0C30 #4F4C0C
split-complementary
#0C4F2B #4C0C4F #4F0C0F
monochromatic
#041B0E #041B0E #0C4F2B #148448 #1CB965

Accessibility & contrast

On white

9.68
#0C4F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4F2B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F2B#FFFFFF#000000##FFFFFF
##0C4F2B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c4f2b;
/* rgb */ color: rgb(12, 79, 43);
/* oklch */ color: oklch(37.8% 0.089 154.0);
Tailwind
colors: {
  custom: {
    50: '#588164',
    500: '#0c4f2b',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f2b;
$custom-light: #588164;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f2b",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 43
  },
  "hsl": {
    "h": 147.761,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37802,
    "c": 0.08856,
    "h": 154
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#0C4F2B
secondary
#8B2C5F
accent
#389BF0
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #0C4F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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