#0C401E#0C401E

#0C401E is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.9% C 0.080 H 150.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#0C401E
RGBrgb(12, 64, 30)
HSLhsl(141, 68%, 15%)
HSVhsv(141, 81%, 25%)
CMYKcmyk(81.2%, 0%, 53.1%, 74.9%)
CIE-LABlab(23.13, -25.76, 16.03)
CIE-LCHlch(23.13, 30.34, 148.10°)
OKLaboklab(32.86% -0.0693 0.0392)
OKLCHoklch(32.86% 0.08 150.5)
XYZxyz(2.2192, 3.8384, 1.8520)
Luminance0.0384 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C401E #400C2E
analogous
#14400C #0C401E #0C4038
triadic
#0C401E #1E0C40 #401E0C
tetradic
#0C401E #0C1440 #400C2E #40380C
square
#0C401E #0C1440 #400C2E #40380C
split-complementary
#0C401E #380C40 #400C14
monochromatic
#051A0C #051A0C #0C401E #167436 #1FA74E

Accessibility & contrast

On white

11.88
#0C401E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C401E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C401E#FFFFFF#000000##FFFFFF
##0C401E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c401e;
/* rgb */ color: rgb(12, 64, 30);
/* oklch */ color: oklch(32.9% 0.080 150.5);
Tailwind
colors: {
  custom: {
    50: '#54755a',
    500: '#0c401e',
    950: '#000000',
  },
}
SCSS
$custom: #0c401e;
$custom-light: #54755a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c401e",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 30
  },
  "hsl": {
    "h": 140.769,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32863,
    "c": 0.07965,
    "h": 150.5
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#0C401E
secondary
#7C2C60
accent
#3DAFEB
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030804
muted
#787B79

Preview Lab

Preview with #0C401E

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

Preview Lab → · Contrast checker → · Palette generator →

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