#0C401C#0C401C

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

Color values

HEX#0C401C
RGBrgb(12, 64, 28)
HSLhsl(138, 68%, 15%)
HSVhsv(138, 81%, 25%)
CMYKcmyk(81.2%, 0%, 56.2%, 74.9%)
CIE-LABlab(23.10, -26.14, 17.21)
CIE-LCHlch(23.10, 31.30, 146.65°)
OKLaboklab(32.82% -0.0704 0.0418)
OKLCHoklch(32.82% 0.082 149.3)
XYZxyz(2.1944, 3.8285, 1.7217)
Luminance0.0383 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C401C #400C30
analogous
#16400C #0C401C #0C4036
triadic
#0C401C #1C0C40 #401C0C
tetradic
#0C401C #0C1640 #400C30 #40360C
square
#0C401C #0C1640 #400C30 #40360C
split-complementary
#0C401C #360C40 #400C16
monochromatic
#051A0B #051A0B #0C401C #167433 #1FA749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C401C#FFFFFF#000000##FFFFFF
##0C401C1.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)
#413A19
Deuteranopia (green-blind)
#3A351F
Tritanopia (blue-blind)
#003F38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #0c401c;
/* rgb */ color: rgb(12, 64, 28);
/* oklch */ color: oklch(32.8% 0.082 149.3);
Tailwind
colors: {
  custom: {
    50: '#547559',
    500: '#0c401c',
    950: '#000000',
  },
}
SCSS
$custom: #0c401c;
$custom-light: #547559;
$custom-dark: #000000;
JSON
{
  "hex": "#0c401c",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 28
  },
  "hsl": {
    "h": 138.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32824,
    "c": 0.08183,
    "h": 149.3
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#0C401C
secondary
#7C2C63
accent
#3DB6EB
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030803
muted
#787B78

Preview Lab

Preview with #0C401C

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

Preview Lab → · Contrast checker → · Palette generator →

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