#0C401A#0C401A

#0C401A is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.8% C 0.084 H 148.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#0C401A
RGBrgb(12, 64, 26)
HSLhsl(136, 68%, 15%)
HSVhsv(136, 81%, 25%)
CMYKcmyk(81.2%, 0%, 59.4%, 74.9%)
CIE-LABlab(23.06, -26.51, 18.37)
CIE-LCHlch(23.06, 32.25, 145.28°)
OKLaboklab(32.79% -0.0714 0.0443)
OKLCHoklch(32.79% 0.084 148.2)
XYZxyz(2.1713, 3.8193, 1.5998)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C401A #400C32
analogous
#18400C #0C401A #0C4034
triadic
#0C401A #1A0C40 #401A0C
tetradic
#0C401A #0C1840 #400C32 #40340C
square
#0C401A #0C1840 #400C32 #40340C
split-complementary
#0C401A #340C40 #400C18
monochromatic
#051A0A #051A0A #0C401A #16742F #1FA744

Accessibility & contrast

On white

11.90
#0C401A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#0C401A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C401A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C401A#FFFFFF#000000##FFFFFF
##0C401A1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413A17
Deuteranopia (green-blind)
#3B351D
Tritanopia (blue-blind)
#003F37
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #0c401a;
/* rgb */ color: rgb(12, 64, 26);
/* oklch */ color: oklch(32.8% 0.084 148.2);
Tailwind
colors: {
  custom: {
    50: '#547557',
    500: '#0c401a',
    950: '#000000',
  },
}
SCSS
$custom: #0c401a;
$custom-light: #547557;
$custom-dark: #000000;
JSON
{
  "hex": "#0c401a",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 26
  },
  "hsl": {
    "h": 136.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32788,
    "c": 0.08398,
    "h": 148.2
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#0C401A
secondary
#7C2C66
accent
#3DBCEB
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030803
muted
#787B78

Preview Lab

Preview with #0C401A

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

Preview Lab → · Contrast checker → · Palette generator →

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