#0C421E#0C421E

#0C421E is a dark, moderate green. Relative luminance 0.041; OKLCH L 33.5% C 0.083 H 150.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#0C421E
RGBrgb(12, 66, 30)
HSLhsl(140, 69%, 15%)
HSVhsv(140, 82%, 26%)
CMYKcmyk(81.8%, 0%, 54.5%, 74.1%)
CIE-LABlab(23.90, -26.63, 17.00)
CIE-LCHlch(23.90, 31.59, 147.45°)
OKLaboklab(33.5% -0.0716 0.0414)
OKLCHoklch(33.5% 0.083 150)
XYZxyz(2.3340, 4.0681, 1.8903)
Luminance0.0407 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C421E #420C30
analogous
#15420C #0C421E #0C4239
triadic
#0C421E #1E0C42 #421E0C
tetradic
#0C421E #0C1542 #420C30 #42390C
square
#0C421E #0C1542 #420C30 #42390C
split-complementary
#0C421E #390C42 #420C15
monochromatic
#051A0C #051A0C #0C421E #157636 #1FAA4D

Accessibility & contrast

On white

11.58
#0C421E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C421E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C421E#FFFFFF#000000##FFFFFF
##0C421E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423C1B
Deuteranopia (green-blind)
#3C3721
Tritanopia (blue-blind)
#00413A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c421e;
/* rgb */ color: rgb(12, 66, 30);
/* oklch */ color: oklch(33.5% 0.083 150.0);
Tailwind
colors: {
  custom: {
    50: '#54775a',
    500: '#0c421e',
    950: '#000000',
  },
}
SCSS
$custom: #0c421e;
$custom-light: #54775a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c421e",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 30
  },
  "hsl": {
    "h": 140,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33495,
    "c": 0.08277,
    "h": 150
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#0C421E
secondary
#7E2C63
accent
#3CB1EC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030904
muted
#787B79

Preview Lab

Preview with #0C421E

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

Preview Lab → · Contrast checker → · Palette generator →

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