#0C421B#0C421B

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

Color values

HEX#0C421B
RGBrgb(12, 66, 27)
HSLhsl(137, 69%, 15%)
HSVhsv(137, 82%, 26%)
CMYKcmyk(81.8%, 0%, 59.1%, 74.1%)
CIE-LABlab(23.85, -27.19, 18.73)
CIE-LCHlch(23.85, 33.02, 145.43°)
OKLaboklab(33.44% -0.0732 0.0452)
OKLCHoklch(33.44% 0.086 148.3)
XYZxyz(2.2975, 4.0535, 1.6980)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C421B #420C33
analogous
#18420C #0C421B #0C4236
triadic
#0C421B #1B0C42 #421B0C
tetradic
#0C421B #0C1842 #420C33 #42360C
square
#0C421B #0C1842 #420C33 #42360C
split-complementary
#0C421B #360C42 #420C18
monochromatic
#051A0B #051A0B #0C421B #157630 #1FAA45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C421B#FFFFFF#000000##FFFFFF
##0C421B1.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)
#433B18
Deuteranopia (green-blind)
#3C371E
Tritanopia (blue-blind)
#004039
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c421b;
/* rgb */ color: rgb(12, 66, 27);
/* oklch */ color: oklch(33.4% 0.086 148.3);
Tailwind
colors: {
  custom: {
    50: '#557758',
    500: '#0c421b',
    950: '#000000',
  },
}
SCSS
$custom: #0c421b;
$custom-light: #557758;
$custom-dark: #000000;
JSON
{
  "hex": "#0c421b",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 27
  },
  "hsl": {
    "h": 136.667,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.3344,
    "c": 0.08598,
    "h": 148.3
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#0C421B
secondary
#7E2C67
accent
#3CBBEC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C421B

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

Preview Lab → · Contrast checker → · Palette generator →

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