#0C421D#0C421D

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

Color values

HEX#0C421D
RGBrgb(12, 66, 29)
HSLhsl(139, 69%, 15%)
HSVhsv(139, 82%, 26%)
CMYKcmyk(81.8%, 0%, 56.1%, 74.1%)
CIE-LABlab(23.88, -26.82, 17.58)
CIE-LCHlch(23.88, 32.07, 146.76°)
OKLaboklab(33.48% -0.0722 0.0427)
OKLCHoklch(33.48% 0.084 149.4)
XYZxyz(2.3214, 4.0630, 1.8241)
Luminance0.0406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C421D #420C31
analogous
#16420C #0C421D #0C4238
triadic
#0C421D #1D0C42 #421D0C
tetradic
#0C421D #0C1642 #420C31 #42380C
square
#0C421D #0C1642 #420C31 #42380C
split-complementary
#0C421D #380C42 #420C16
monochromatic
#051A0B #051A0B #0C421D #157634 #1FAA4B

Accessibility & contrast

On white

11.59
#0C421D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C421D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C421D#FFFFFF#000000##FFFFFF
##0C421D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433C1A
Deuteranopia (green-blind)
#3C3720
Tritanopia (blue-blind)
#004139
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c421d;
/* rgb */ color: rgb(12, 66, 29);
/* oklch */ color: oklch(33.5% 0.084 149.4);
Tailwind
colors: {
  custom: {
    50: '#54775a',
    500: '#0c421d',
    950: '#000000',
  },
}
SCSS
$custom: #0c421d;
$custom-light: #54775a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c421d",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 29
  },
  "hsl": {
    "h": 138.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.08384,
    "h": 149.4
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#0C421D
secondary
#7E2C64
accent
#3CB5EC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C421D

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

Preview Lab → · Contrast checker → · Palette generator →

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