#0C2F0C#0C2F0C

#0C2F0C is a dark, moderate green. Relative luminance 0.021; OKLCH L 27.0% C 0.072 H 143.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#0C2F0C
RGBrgb(12, 47, 12)
HSLhsl(120, 59%, 12%)
HSVhsv(120, 74%, 18%)
CMYKcmyk(74.5%, 0%, 74.5%, 81.6%)
CIE-LABlab(16.19, -21.24, 17.97)
CIE-LCHlch(16.19, 27.82, 139.76°)
OKLaboklab(27.05% -0.0577 0.0431)
OKLCHoklch(27.05% 0.072 143.3)
XYZxyz(1.2344, 2.1376, 0.6953)
Luminance0.0214 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F0C #2F0C2F
analogous
#1E2F0C #0C2F0C #0C2F1E
triadic
#0C2F0C #0C0C2F #2F0C0C
tetradic
#0C2F0C #0C1E2F #2F0C2F #2F1E0C
square
#0C2F0C #0C1E2F #2F0C2F #2F1E0C
split-complementary
#0C2F0C #1E0C2F #2F0C1E
monochromatic
#061806 #061806 #0C2F0C #186018 #259125

Accessibility & contrast

On white

14.71
#0C2F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0C2F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2F0C
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F0C#FFFFFF#000000##FFFFFF
##0C2F0C1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A08
Deuteranopia (green-blind)
#2C270F
Tritanopia (blue-blind)
#062D28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2f0c;
/* rgb */ color: rgb(12, 47, 12);
/* oklch */ color: oklch(27.0% 0.072 143.3);
Tailwind
colors: {
  custom: {
    50: '#50684c',
    500: '#0c2f0c',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f0c;
$custom-light: #50684c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f0c",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 12
  },
  "hsl": {
    "h": 120,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.27045,
    "c": 0.07199,
    "h": 143.3
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#0C2F0C
secondary
#6B2C6B
accent
#45E3E3
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#020601
muted
#787A77

Preview Lab

Preview with #0C2F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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