#0C4B1F#0C4B1F

#0C4B1F is a dark, moderate green. Relative luminance 0.052; OKLCH L 36.3% C 0.095 H 148.6°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#0C4B1F
RGBrgb(12, 75, 31)
HSLhsl(138, 72%, 17%)
HSVhsv(138, 84%, 29%)
CMYKcmyk(84%, 0%, 58.7%, 70.6%)
CIE-LABlab(27.32, -30.23, 20.65)
CIE-LCHlch(27.32, 36.61, 145.66°)
OKLaboklab(36.34% -0.0813 0.0497)
OKLCHoklch(36.34% 0.095 148.6)
XYZxyz(2.9148, 5.2089, 2.1479)
Luminance0.0521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4B1F #4B0C38
analogous
#194B0C #0C4B1F #0C4B3F
triadic
#0C4B1F #1F0C4B #4B1F0C
tetradic
#0C4B1F #0C194B #4B0C38 #4B3F0C
square
#0C4B1F #0C194B #4B0C38 #4B3F0C
split-complementary
#0C4B1F #3F0C4B #4B0C19
monochromatic
#041A0B #041A0B #0C4B1F #148035 #1DB54B

Accessibility & contrast

On white

10.29
#0C4B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4B1F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4B1F#FFFFFF#000000##FFFFFF
##0C4B1F1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C441B
Deuteranopia (green-blind)
#453F22
Tritanopia (blue-blind)
#004941
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4b1f;
/* rgb */ color: rgb(12, 75, 31);
/* oklch */ color: oklch(36.3% 0.095 148.6);
Tailwind
colors: {
  custom: {
    50: '#577e5c',
    500: '#0c4b1f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4b1f;
$custom-light: #577e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4b1f",
  "rgb": {
    "r": 12,
    "g": 75,
    "b": 31
  },
  "hsl": {
    "h": 138.095,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.09525,
    "h": 148.6
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#0C4B1F
secondary
#872C6B
accent
#39B8EF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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