#0C401D#0C401D

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

Color values

HEX#0C401D
RGBrgb(12, 64, 29)
HSLhsl(140, 68%, 15%)
HSVhsv(140, 81%, 25%)
CMYKcmyk(81.2%, 0%, 54.7%, 74.9%)
CIE-LABlab(23.11, -25.95, 16.62)
CIE-LCHlch(23.11, 30.82, 147.36°)
OKLaboklab(32.84% -0.0698 0.0405)
OKLCHoklch(32.84% 0.081 149.9)
XYZxyz(2.2066, 3.8334, 1.7858)
Luminance0.0383 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C401D #400C2F
analogous
#15400C #0C401D #0C4037
triadic
#0C401D #1D0C40 #401D0C
tetradic
#0C401D #0C1540 #400C2F #40370C
square
#0C401D #0C1540 #400C2F #40370C
split-complementary
#0C401D #370C40 #400C15
monochromatic
#051A0C #051A0C #0C401D #167434 #1FA74C

Accessibility & contrast

On white

11.89
#0C401D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#0C401D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C401D
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C401D#FFFFFF#000000##FFFFFF
##0C401D1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403A1A
Deuteranopia (green-blind)
#3A351F
Tritanopia (blue-blind)
#003F38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #0c401d;
/* rgb */ color: rgb(12, 64, 29);
/* oklch */ color: oklch(32.8% 0.081 149.9);
Tailwind
colors: {
  custom: {
    50: '#547559',
    500: '#0c401d',
    950: '#000000',
  },
}
SCSS
$custom: #0c401d;
$custom-light: #547559;
$custom-dark: #000000;
JSON
{
  "hex": "#0c401d",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 29
  },
  "hsl": {
    "h": 139.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.08074,
    "h": 149.9
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#0C401D
secondary
#7C2C62
accent
#3DB2EB
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030803
muted
#787B78

Preview Lab

Preview with #0C401D

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

Preview Lab → · Contrast checker → · Palette generator →

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