#0C4B2A#0C4B2A

#0C4B2A is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.6% C 0.084 H 154.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#0C4B2A
RGBrgb(12, 75, 42)
HSLhsl(149, 72%, 17%)
HSVhsv(149, 84%, 29%)
CMYKcmyk(84%, 0%, 44%, 70.6%)
CIE-LABlab(27.51, -28.05, 14.30)
CIE-LCHlch(27.51, 31.48, 152.98°)
OKLaboklab(36.55% -0.0756 0.0356)
OKLCHoklch(36.55% 0.084 154.8)
XYZxyz(3.0853, 5.2771, 3.0460)
Luminance0.0528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4B2A #4B0C2D
analogous
#0E4B0C #0C4B2A #0C4B4A
triadic
#0C4B2A #2A0C4B #4B2A0C
tetradic
#0C4B2A #0C0E4B #4B0C2D #4B4A0C
square
#0C4B2A #0C0E4B #4B0C2D #4B4A0C
split-complementary
#0C4B2A #4A0C4B #4B0C0E
monochromatic
#041A0F #041A0F #0C4B2A #148048 #1DB565

Accessibility & contrast

On white

10.22
#0C4B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#0C4B2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4B2A
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4B2A#FFFFFF#000000##FFFFFF
##0C4B2A1.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4428
Deuteranopia (green-blind)
#433F2C
Tritanopia (blue-blind)
#004A43
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4b2a;
/* rgb */ color: rgb(12, 75, 42);
/* oklch */ color: oklch(36.6% 0.084 154.8);
Tailwind
colors: {
  custom: {
    50: '#577e64',
    500: '#0c4b2a',
    950: '#000000',
  },
}
SCSS
$custom: #0c4b2a;
$custom-light: #577e64;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4b2a",
  "rgb": {
    "r": 12,
    "g": 75,
    "b": 42
  },
  "hsl": {
    "h": 148.571,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.36553,
    "c": 0.08358,
    "h": 154.8
  },
  "luminance": 0.05277
}

Semantic roles & 50–950 ramp

primary
#0C4B2A
secondary
#872C5C
accent
#3998EF
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#030A05
muted
#787C79

Preview Lab

Preview with #0C4B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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