#0C4B18#0C4B18

#0C4B18 is a dark, moderate green. Relative luminance 0.052; OKLCH L 36.2% C 0.102 H 145.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#0C4B18
RGBrgb(12, 75, 24)
HSLhsl(131, 72%, 17%)
HSVhsv(131, 84%, 29%)
CMYKcmyk(84%, 0%, 68%, 70.6%)
CIE-LABlab(27.23, -31.32, 24.41)
CIE-LCHlch(27.23, 39.71, 142.07°)
OKLaboklab(36.23% -0.0844 0.0573)
OKLCHoklch(36.23% 0.102 145.8)
XYZxyz(2.8324, 5.1759, 1.7138)
Luminance0.0518 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4B18 #4B0C3F
analogous
#1F4B0C #0C4B18 #0C4B38
triadic
#0C4B18 #180C4B #4B180C
tetradic
#0C4B18 #0C1F4B #4B0C3F #4B380C
square
#0C4B18 #0C1F4B #4B0C3F #4B380C
split-complementary
#0C4B18 #380C4B #4B0C1F
monochromatic
#041A08 #041A08 #0C4B18 #148029 #1DB53A

Accessibility & contrast

On white

10.32
#0C4B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#0C4B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4B18
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4B18#FFFFFF#000000##FFFFFF
##0C4B181.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4312
Deuteranopia (green-blind)
#453E1C
Tritanopia (blue-blind)
#004940
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #0c4b18;
/* rgb */ color: rgb(12, 75, 24);
/* oklch */ color: oklch(36.2% 0.102 145.8);
Tailwind
colors: {
  custom: {
    50: '#577e57',
    500: '#0c4b18',
    950: '#000000',
  },
}
SCSS
$custom: #0c4b18;
$custom-light: #577e57;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4b18",
  "rgb": {
    "r": 12,
    "g": 75,
    "b": 24
  },
  "hsl": {
    "h": 131.429,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.3623,
    "c": 0.10202,
    "h": 145.8
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#0C4B18
secondary
#872C75
accent
#39CCEF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4B18

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

Preview Lab → · Contrast checker → · Palette generator →

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