#0C2B02#0C2B02

#0C2B02 is a dark, moderate green. Relative luminance 0.018; OKLCH L 25.6% C 0.076 H 138.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#0C2B02
RGBrgb(12, 43, 2)
HSLhsl(105, 91%, 9%)
HSVhsv(105, 95%, 17%)
CMYKcmyk(72.1%, 0%, 95.3%, 83.1%)
CIE-LABlab(14.46, -20.77, 19.88)
CIE-LCHlch(14.46, 28.75, 136.25°)
OKLaboklab(25.57% -0.0573 0.0503)
OKLCHoklch(25.57% 0.076 138.7)
XYZxyz(1.0264, 1.8102, 0.3527)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2B02 #21022B
analogous
#212B02 #0C2B02 #022B0D
triadic
#0C2B02 #020C2B #2B020C
tetradic
#0C2B02 #02212B #21022B #2B0D02
square
#0C2B02 #02212B #21022B #2B0D02
split-complementary
#0C2B02 #0D022B #2B0221
monochromatic
#081D01 #081D01 #0C2B02 #1C6505 #2DA007

Accessibility & contrast

On white

15.42
#0C2B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0C2B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2B02
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2B02#FFFFFF#000000##FFFFFF
##0C2B021.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2600
Deuteranopia (green-blind)
#292405
Tritanopia (blue-blind)
#092923
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2b02;
/* rgb */ color: rgb(12, 43, 2);
/* oklch */ color: oklch(25.6% 0.076 138.7);
Tailwind
colors: {
  custom: {
    50: '#4e6547',
    500: '#0c2b02',
    950: '#000000',
  },
}
SCSS
$custom: #0c2b02;
$custom-light: #4e6547;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2b02",
  "rgb": {
    "r": 12,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 105.366,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.25573,
    "c": 0.07631,
    "h": 138.7
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#0C2B02
secondary
#5B1970
accent
#29FFCB
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#020500
muted
#787A77

Preview Lab

Preview with #0C2B02

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

Preview Lab → · Contrast checker → · Palette generator →

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