#0C4E2B#0C4E2B

#0C4E2B is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.5% C 0.087 H 154.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#0C4E2B
RGBrgb(12, 78, 43)
HSLhsl(148, 73%, 18%)
HSVhsv(148, 85%, 31%)
CMYKcmyk(84.6%, 0%, 44.9%, 69.4%)
CIE-LABlab(28.65, -29.13, 15.18)
CIE-LCHlch(28.65, 32.85, 152.47°)
OKLaboklab(37.5% -0.0785 0.0377)
OKLCHoklch(37.5% 0.087 154.3)
XYZxyz(3.3117, 5.7010, 3.2109)
Luminance0.0570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E2B #4E0C2F
analogous
#0E4E0C #0C4E2B #0C4E4C
triadic
#0C4E2B #2B0C4E #4E2B0C
tetradic
#0C4E2B #0C0E4E #4E0C2F #4E4C0C
square
#0C4E2B #0C0E4E #4E0C2F #4E4C0C
split-complementary
#0C4E2B #4C0C4E #4E0C0E
monochromatic
#041B0F #041B0F #0C4E2B #148348 #1CB865

Accessibility & contrast

On white

9.81
#0C4E2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#0C4E2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E2B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E2B#FFFFFF#000000##FFFFFF
##0C4E2B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4729
Deuteranopia (green-blind)
#46412D
Tritanopia (blue-blind)
#004D45
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4e2b;
/* rgb */ color: rgb(12, 78, 43);
/* oklch */ color: oklch(37.5% 0.087 154.3);
Tailwind
colors: {
  custom: {
    50: '#588064',
    500: '#0c4e2b',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e2b;
$custom-light: #588064;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e2b",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 43
  },
  "hsl": {
    "h": 148.182,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37496,
    "c": 0.08706,
    "h": 154.3
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#0C4E2B
secondary
#8A2C5E
accent
#3899F0
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #0C4E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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