#0C4F31#0C4F31

#0C4F31 is a dark, moderate teal. Relative luminance 0.059; OKLCH L 37.9% C 0.082 H 158.2°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#0C4F31
RGBrgb(12, 79, 49)
HSLhsl(153, 74%, 18%)
HSVhsv(153, 85%, 31%)
CMYKcmyk(84.8%, 0%, 38%, 69%)
CIE-LABlab(29.14, -28.18, 12.13)
CIE-LCHlch(29.14, 30.69, 156.71°)
OKLaboklab(37.94% -0.0763 0.0306)
OKLCHoklch(37.94% 0.082 158.2)
XYZxyz(3.5016, 5.8915, 3.8578)
Luminance0.0589 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F31 #4F0C2A
analogous
#0C4F0F #0C4F31 #0C4B4F
triadic
#0C4F31 #310C4F #4F310C
tetradic
#0C4F31 #0F0C4F #4F0C2A #4B4F0C
square
#0C4F31 #0F0C4F #4F0C2A #4B4F0C
split-complementary
#0C4F31 #4F0C4B #4F0F0C
monochromatic
#041B10 #041B10 #0C4F31 #148452 #1CB973

Accessibility & contrast

On white

9.64
#0C4F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#0C4F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F31
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F31#FFFFFF#000000##FFFFFF
##0C4F311.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E482F
Deuteranopia (green-blind)
#464233
Tritanopia (blue-blind)
#004E47
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c4f31;
/* rgb */ color: rgb(12, 79, 49);
/* oklch */ color: oklch(37.9% 0.082 158.2);
Tailwind
colors: {
  custom: {
    50: '#588169',
    500: '#0c4f31',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f31;
$custom-light: #588169;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f31",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 49
  },
  "hsl": {
    "h": 153.134,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37942,
    "c": 0.08221,
    "h": 158.2
  },
  "luminance": 0.05892
}

Semantic roles & 50–950 ramp

primary
#0C4F31
secondary
#8B2C56
accent
#388AF0
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C4F31

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

Preview Lab → · Contrast checker → · Palette generator →

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