#0C421A#0C421A

#0C421A is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.4% C 0.087 H 147.8°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#0C421A
RGBrgb(12, 66, 26)
HSLhsl(136, 69%, 15%)
HSVhsv(136, 82%, 26%)
CMYKcmyk(81.8%, 0%, 60.6%, 74.1%)
CIE-LABlab(23.83, -27.36, 19.30)
CIE-LCHlch(23.83, 33.49, 144.80°)
OKLaboklab(33.42% -0.0737 0.0463)
OKLCHoklch(33.42% 0.087 147.8)
XYZxyz(2.2861, 4.0489, 1.6381)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C421A #420C34
analogous
#19420C #0C421A #0C4235
triadic
#0C421A #1A0C42 #421A0C
tetradic
#0C421A #0C1942 #420C34 #42350C
square
#0C421A #0C1942 #420C34 #42350C
split-complementary
#0C421A #350C42 #420C19
monochromatic
#051A0A #051A0A #0C421A #15762E #1FAA43

Accessibility & contrast

On white

11.60
#0C421A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#0C421A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C421A
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C421A#FFFFFF#000000##FFFFFF
##0C421A1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B16
Deuteranopia (green-blind)
#3C371D
Tritanopia (blue-blind)
#004039
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c421a;
/* rgb */ color: rgb(12, 66, 26);
/* oklch */ color: oklch(33.4% 0.087 147.8);
Tailwind
colors: {
  custom: {
    50: '#557757',
    500: '#0c421a',
    950: '#000000',
  },
}
SCSS
$custom: #0c421a;
$custom-light: #557757;
$custom-dark: #000000;
JSON
{
  "hex": "#0c421a",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 26
  },
  "hsl": {
    "h": 135.556,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33423,
    "c": 0.08702,
    "h": 147.8
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#0C421A
secondary
#7E2C69
accent
#3CBEEC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C421A

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

Preview Lab → · Contrast checker → · Palette generator →

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