#0C421C#0C421C

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

Color values

HEX#0C421C
RGBrgb(12, 66, 28)
HSLhsl(138, 69%, 15%)
HSVhsv(138, 82%, 26%)
CMYKcmyk(81.8%, 0%, 57.6%, 74.1%)
CIE-LABlab(23.86, -27.01, 18.16)
CIE-LCHlch(23.86, 32.54, 146.08°)
OKLaboklab(33.46% -0.0727 0.0439)
OKLCHoklch(33.46% 0.085 148.8)
XYZxyz(2.3093, 4.0582, 1.7600)
Luminance0.0406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C421C #420C32
analogous
#17420C #0C421C #0C4237
triadic
#0C421C #1C0C42 #421C0C
tetradic
#0C421C #0C1742 #420C32 #42370C
square
#0C421C #0C1742 #420C32 #42370C
split-complementary
#0C421C #370C42 #420C17
monochromatic
#051A0B #051A0B #0C421C #157632 #1FAA48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C421C#FFFFFF#000000##FFFFFF
##0C421C1.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)
#433B19
Deuteranopia (green-blind)
#3C371F
Tritanopia (blue-blind)
#004139
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c421c;
/* rgb */ color: rgb(12, 66, 28);
/* oklch */ color: oklch(33.5% 0.085 148.8);
Tailwind
colors: {
  custom: {
    50: '#547759',
    500: '#0c421c',
    950: '#000000',
  },
}
SCSS
$custom: #0c421c;
$custom-light: #547759;
$custom-dark: #000000;
JSON
{
  "hex": "#0c421c",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 28
  },
  "hsl": {
    "h": 137.778,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33458,
    "c": 0.08492,
    "h": 148.8
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#0C421C
secondary
#7E2C66
accent
#3CB8EC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C421C

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

Preview Lab → · Contrast checker → · Palette generator →

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