#0C4F2E#0C4F2E

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

Color values

HEX#0C4F2E
RGBrgb(12, 79, 46)
HSLhsl(150, 74%, 18%)
HSVhsv(150, 85%, 31%)
CMYKcmyk(84.8%, 0%, 41.8%, 69%)
CIE-LABlab(29.07, -28.89, 13.91)
CIE-LCHlch(29.07, 32.06, 154.29°)
OKLaboklab(37.87% -0.0779 0.0348)
OKLCHoklch(37.87% 0.085 155.9)
XYZxyz(3.4404, 5.8670, 3.5354)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F2E #4F0C2D
analogous
#0C4F0D #0C4F2E #0C4E4F
triadic
#0C4F2E #2E0C4F #4F2E0C
tetradic
#0C4F2E #0D0C4F #4F0C2D #4E4F0C
square
#0C4F2E #0D0C4F #4F0C2D #4E4F0C
split-complementary
#0C4F2E #4F0C4E #4F0D0C
monochromatic
#041B0F #041B0F #0C4F2E #14844D #1CB96C

Accessibility & contrast

On white

9.66
#0C4F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#0C4F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F2E
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F2E#FFFFFF#000000##FFFFFF
##0C4F2E1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c4f2e;
/* rgb */ color: rgb(12, 79, 46);
/* oklch */ color: oklch(37.9% 0.085 155.9);
Tailwind
colors: {
  custom: {
    50: '#588167',
    500: '#0c4f2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f2e;
$custom-light: #588167;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f2e",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 46
  },
  "hsl": {
    "h": 150.448,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.3787,
    "c": 0.08536,
    "h": 155.9
  },
  "luminance": 0.05867
}

Semantic roles & 50–950 ramp

primary
#0C4F2E
secondary
#8B2C5B
accent
#3893F0
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C4F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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