#0C4E23#0C4E23

#0C4E23 is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.3% C 0.096 H 149.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#0C4E23
RGBrgb(12, 78, 35)
HSLhsl(141, 73%, 18%)
HSVhsv(141, 85%, 31%)
CMYKcmyk(84.6%, 0%, 55.1%, 69.4%)
CIE-LABlab(28.51, -30.74, 19.80)
CIE-LCHlch(28.51, 36.56, 147.22°)
OKLaboklab(37.34% -0.0826 0.048)
OKLCHoklch(37.34% 0.096 149.8)
XYZxyz(3.1791, 5.6479, 2.5124)
Luminance0.0565 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E23 #4E0C37
analogous
#164E0C #0C4E23 #0C4E44
triadic
#0C4E23 #230C4E #4E230C
tetradic
#0C4E23 #0C164E #4E0C37 #4E440C
square
#0C4E23 #0C164E #4E0C37 #4E440C
split-complementary
#0C4E23 #440C4E #4E0C16
monochromatic
#041B0C #041B0C #0C4E23 #14833B #1CB853

Accessibility & contrast

On white

9.86
#0C4E23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#0C4E23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E23
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E23#FFFFFF#000000##FFFFFF
##0C4E231.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F461F
Deuteranopia (green-blind)
#474126
Tritanopia (blue-blind)
#004C44
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e23;
/* rgb */ color: rgb(12, 78, 35);
/* oklch */ color: oklch(37.3% 0.096 149.8);
Tailwind
colors: {
  custom: {
    50: '#58805f',
    500: '#0c4e23',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e23;
$custom-light: #58805f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e23",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 35
  },
  "hsl": {
    "h": 140.909,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37336,
    "c": 0.09553,
    "h": 149.8
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#0C4E23
secondary
#8A2C69
accent
#38B0F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4E23

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

Preview Lab → · Contrast checker → · Palette generator →

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