#0C5740#0C5740

#0C5740 is a dark, moderate teal. Relative luminance 0.073; OKLCH L 40.7% C 0.079 H 166.4°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#0C5740
RGBrgb(12, 87, 64)
HSLhsl(162, 76%, 19%)
HSVhsv(162, 86%, 34%)
CMYKcmyk(86.2%, 0%, 26.4%, 65.9%)
CIE-LABlab(32.40, -27.95, 7.28)
CIE-LCHlch(32.40, 28.88, 165.40°)
OKLaboklab(40.74% -0.0771 0.0186)
OKLCHoklch(40.74% 0.079 166.4)
XYZxyz(4.4847, 7.2642, 6.0153)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5740 #570C23
analogous
#0C571B #0C5740 #0C4957
triadic
#0C5740 #400C57 #57400C
tetradic
#0C5740 #1B0C57 #570C23 #49570C
square
#0C5740 #1B0C57 #570C23 #49570C
split-complementary
#0C5740 #570C49 #571B0C
monochromatic
#041B14 #052118 #0C5740 #138D68 #1BC38F

Accessibility & contrast

On white

8.56
#0C5740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#0C5740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5740
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5740#FFFFFF#000000##FFFFFF
##0C57401.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55503F
Deuteranopia (green-blind)
#4C4A42
Tritanopia (blue-blind)
#005751
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #0c5740;
/* rgb */ color: rgb(12, 87, 64);
/* oklch */ color: oklch(40.7% 0.079 166.4);
Tailwind
colors: {
  custom: {
    50: '#5a8774',
    500: '#0c5740',
    950: '#000000',
  },
}
SCSS
$custom: #0c5740;
$custom-light: #5a8774;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5740",
  "rgb": {
    "r": 12,
    "g": 87,
    "b": 64
  },
  "hsl": {
    "h": 161.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40745,
    "c": 0.07927,
    "h": 166.4
  },
  "luminance": 0.07265
}

Semantic roles & 50–950 ramp

primary
#0C5740
secondary
#922D4C
accent
#356FF2
background
#F5F8F7
surface
#E9EFED
border
#C5CAC8
text
#040B08
muted
#797C7B

Preview Lab

Preview with #0C5740

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

Preview Lab → · Contrast checker → · Palette generator →

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