#0C2F02#0C2F02

#0C2F02 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.9% C 0.082 H 139.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#0C2F02
RGBrgb(12, 47, 2)
HSLhsl(107, 92%, 10%)
HSVhsv(107, 96%, 18%)
CMYKcmyk(74.5%, 0%, 95.7%, 81.6%)
CIE-LABlab(16.08, -22.54, 21.95)
CIE-LCHlch(16.08, 31.47, 135.76°)
OKLaboklab(26.92% -0.0621 0.0534)
OKLCHoklch(26.92% 0.082 139.3)
XYZxyz(1.1790, 2.1155, 0.4036)
Luminance0.0212 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F02 #25022F
analogous
#232F02 #0C2F02 #022F0F
triadic
#0C2F02 #020C2F #2F020C
tetradic
#0C2F02 #02232F #25022F #2F0F02
square
#0C2F02 #02232F #25022F #2F0F02
split-complementary
#0C2F02 #0F022F #2F0223
monochromatic
#071D01 #071D01 #0C2F02 #1B6A04 #2AA407

Accessibility & contrast

On white

14.76
#0C2F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0C2F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2F02
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F02#FFFFFF#000000##FFFFFF
##0C2F021.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2C2706
Tritanopia (blue-blind)
#082D27
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2f02;
/* rgb */ color: rgb(12, 47, 2);
/* oklch */ color: oklch(26.9% 0.082 139.3);
Tailwind
colors: {
  custom: {
    50: '#506848',
    500: '#0c2f02',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f02;
$custom-light: #506848;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f02",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 106.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26917,
    "c": 0.08188,
    "h": 139.3
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#0C2F02
secondary
#601974
accent
#29FFCF
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#020600
muted
#787A77

Preview Lab

Preview with #0C2F02

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

Preview Lab → · Contrast checker → · Palette generator →

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