#0C4F26#0C4F26

#0C4F26 is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.7% C 0.094 H 151.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#0C4F26
RGBrgb(12, 79, 38)
HSLhsl(143, 74%, 18%)
HSVhsv(143, 85%, 31%)
CMYKcmyk(84.8%, 0%, 51.9%, 69%)
CIE-LABlab(28.93, -30.58, 18.56)
CIE-LCHlch(28.93, 35.77, 148.75°)
OKLaboklab(37.7% -0.0822 0.0454)
OKLCHoklch(37.7% 0.094 151.1)
XYZxyz(3.2972, 5.8097, 2.7810)
Luminance0.0581 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F26 #4F0C35
analogous
#134F0C #0C4F26 #0C4F47
triadic
#0C4F26 #260C4F #4F260C
tetradic
#0C4F26 #0C134F #4F0C35 #4F470C
square
#0C4F26 #0C134F #4F0C35 #4F470C
split-complementary
#0C4F26 #470C4F #4F0C13
monochromatic
#041B0D #041B0D #0C4F26 #148440 #1CB959

Accessibility & contrast

On white

9.71
#0C4F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#0C4F26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F26
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F26#FFFFFF#000000##FFFFFF
##0C4F261.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4723
Deuteranopia (green-blind)
#484229
Tritanopia (blue-blind)
#004E45
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f26;
/* rgb */ color: rgb(12, 79, 38);
/* oklch */ color: oklch(37.7% 0.094 151.1);
Tailwind
colors: {
  custom: {
    50: '#588161',
    500: '#0c4f26',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f26;
$custom-light: #588161;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f26",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 38
  },
  "hsl": {
    "h": 143.284,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.377,
    "c": 0.09387,
    "h": 151.1
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#0C4F26
secondary
#8B2C66
accent
#38A9F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4F26

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

Preview Lab → · Contrast checker → · Palette generator →

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