#0C4940#0C4940

#0C4940 is a dark, moderate teal. Relative luminance 0.052; OKLCH L 36.6% C 0.061 H 180.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#0C4940
RGBrgb(12, 73, 64)
HSLhsl(171, 72%, 17%)
HSVhsv(171, 84%, 29%)
CMYKcmyk(83.6%, 0%, 12.3%, 71.4%)
CIE-LABlab(27.33, -21.09, 0.01)
CIE-LCHlch(27.33, 21.09, 179.97°)
OKLaboklab(36.59% -0.061 -0.0003)
OKLCHoklch(36.59% 0.061 180.3)
XYZxyz(3.4591, 5.2130, 5.6734)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4940 #490C15
analogous
#0C4922 #0C4940 #0C3449
triadic
#0C4940 #400C49 #49400C
tetradic
#0C4940 #220C49 #490C15 #34490C
square
#0C4940 #220C49 #490C15 #34490C
split-complementary
#0C4940 #490C34 #49220C
monochromatic
#041A17 #041A17 #0C4940 #157E6E #1DB29C

Accessibility & contrast

On white

10.28
#0C4940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#0C4940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4940
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4940#FFFFFF#000000##FFFFFF
##0C49401.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454440
Deuteranopia (green-blind)
#3D3E41
Tritanopia (blue-blind)
#004A46
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4940;
/* rgb */ color: rgb(12, 73, 64);
/* oklch */ color: oklch(36.6% 0.061 180.3);
Tailwind
colors: {
  custom: {
    50: '#577c74',
    500: '#0c4940',
    950: '#000000',
  },
}
SCSS
$custom: #0c4940;
$custom-light: #577c74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4940",
  "rgb": {
    "r": 12,
    "g": 73,
    "b": 64
  },
  "hsl": {
    "h": 171.148,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.36592,
    "c": 0.06101,
    "h": 180.3
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#0C4940
secondary
#852C39
accent
#3954EE
background
#F5F7F7
surface
#E9EEED
border
#C5C9C8
text
#040908
muted
#797B7B

Preview Lab

Preview with #0C4940

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

Preview Lab → · Contrast checker → · Palette generator →

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