#0C2012#0C2012

#0C2012 is a very dark, muted green. Relative luminance 0.012; OKLCH L 22.2% C 0.038 H 151.9°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#0C2012
RGBrgb(12, 32, 18)
HSLhsl(138, 45%, 9%)
HSVhsv(138, 63%, 13%)
CMYKcmyk(62.5%, 0%, 43.8%, 87.5%)
CIE-LABlab(10.22, -12.21, 6.83)
CIE-LCHlch(10.22, 13.99, 150.76°)
OKLaboklab(22.18% -0.0335 0.0179)
OKLCHoklch(22.18% 0.038 151.9)
XYZxyz(0.7773, 1.1548, 0.7541)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2012 #200C1A
analogous
#10200C #0C2012 #0C201C
triadic
#0C2012 #120C20 #20120C
tetradic
#0C2012 #0C1020 #200C1A #201C0C
square
#0C2012 #0C1020 #200C1A #201C0C
split-complementary
#0C2012 #1C0C20 #200C10
monochromatic
#08160D #08160D #0C2012 #1D4D2B #2D7944

Accessibility & contrast

On white

17.06
#0C2012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C2012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2012
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2012#FFFFFF#000000##FFFFFF
##0C20121.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201D11
Deuteranopia (green-blind)
#1D1B13
Tritanopia (blue-blind)
#081F1C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c2012;
/* rgb */ color: rgb(12, 32, 18);
/* oklch */ color: oklch(22.2% 0.038 151.9);
Tailwind
colors: {
  custom: {
    50: '#4c5b50',
    500: '#0c2012',
    950: '#000000',
  },
}
SCSS
$custom: #0c2012;
$custom-light: #4c5b50;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2012",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 18
  },
  "hsl": {
    "h": 138,
    "s": 45.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.22175,
    "c": 0.03793,
    "h": 151.9
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#0C2012
secondary
#5A2E4D
accent
#53AED5
background
#F4F5F4
surface
#E7E9E7
border
#C3C5C3
text
#010402
muted
#777978

Preview Lab

Preview with #0C2012

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

Preview Lab → · Contrast checker → · Palette generator →

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