#0C2D02#0C2D02

#0C2D02 is a dark, moderate green. Relative luminance 0.020; OKLCH L 26.2% C 0.079 H 139.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#0C2D02
RGBrgb(12, 45, 2)
HSLhsl(106, 91%, 9%)
HSVhsv(106, 96%, 18%)
CMYKcmyk(73.3%, 0%, 95.6%, 82.4%)
CIE-LABlab(15.27, -21.66, 20.93)
CIE-LCHlch(15.27, 30.12, 135.99°)
OKLaboklab(26.25% -0.0597 0.0519)
OKLCHoklch(26.25% 0.079 139)
XYZxyz(1.1009, 1.9592, 0.3776)
Luminance0.0196 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2D02 #23022D
analogous
#222D02 #0C2D02 #022D0E
triadic
#0C2D02 #020C2D #2D020C
tetradic
#0C2D02 #02222D #23022D #2D0E02
square
#0C2D02 #02222D #23022D #2D0E02
split-complementary
#0C2D02 #0E022D #2D0222
monochromatic
#081D01 #081D01 #0C2D02 #1C6805 #2BA207

Accessibility & contrast

On white

15.09
#0C2D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#0C2D02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2D02
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2D02#FFFFFF#000000##FFFFFF
##0C2D021.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2800
Deuteranopia (green-blind)
#2B2506
Tritanopia (blue-blind)
#082B25
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2d02;
/* rgb */ color: rgb(12, 45, 2);
/* oklch */ color: oklch(26.2% 0.079 139.0);
Tailwind
colors: {
  custom: {
    50: '#4f6647',
    500: '#0c2d02',
    950: '#000000',
  },
}
SCSS
$custom: #0c2d02;
$custom-light: #4f6647;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2d02",
  "rgb": {
    "r": 12,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 106.047,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.26246,
    "c": 0.07912,
    "h": 139
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#0C2D02
secondary
#5D1972
accent
#29FFCD
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#020600
muted
#787A77

Preview Lab

Preview with #0C2D02

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

Preview Lab → · Contrast checker → · Palette generator →

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