#0C421F#0C421F

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

Color values

HEX#0C421F
RGBrgb(12, 66, 31)
HSLhsl(141, 69%, 15%)
HSVhsv(141, 82%, 26%)
CMYKcmyk(81.8%, 0%, 53%, 74.1%)
CIE-LABlab(23.91, -26.44, 16.41)
CIE-LCHlch(23.91, 31.12, 148.17°)
OKLaboklab(33.52% -0.0711 0.0401)
OKLCHoklch(33.52% 0.082 150.6)
XYZxyz(2.3470, 4.0733, 1.9586)
Luminance0.0407 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C421F #420C2F
analogous
#14420C #0C421F #0C423A
triadic
#0C421F #1F0C42 #421F0C
tetradic
#0C421F #0C1442 #420C2F #423A0C
square
#0C421F #0C1442 #420C2F #423A0C
split-complementary
#0C421F #3A0C42 #420C14
monochromatic
#051A0C #051A0C #0C421F #157637 #1FAA50

Accessibility & contrast

On white

11.57
#0C421F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C421F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C421F#FFFFFF#000000##FFFFFF
##0C421F1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c421f;
/* rgb */ color: rgb(12, 66, 31);
/* oklch */ color: oklch(33.5% 0.082 150.6);
Tailwind
colors: {
  custom: {
    50: '#54775b',
    500: '#0c421f',
    950: '#000000',
  },
}
SCSS
$custom: #0c421f;
$custom-light: #54775b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c421f",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 31
  },
  "hsl": {
    "h": 141.111,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33515,
    "c": 0.08167,
    "h": 150.6
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#0C421F
secondary
#7E2C61
accent
#3CAEEC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030904
muted
#787B79

Preview Lab

Preview with #0C421F

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

Preview Lab → · Contrast checker → · Palette generator →

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