#0C5145#0C5145

#0C5145 is a dark, moderate teal. Relative luminance 0.064; OKLCH L 39.1% C 0.068 H 177.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#0C5145
RGBrgb(12, 81, 69)
HSLhsl(170, 74%, 18%)
HSVhsv(170, 85%, 32%)
CMYKcmyk(85.2%, 0%, 14.8%, 68.2%)
CIE-LABlab(30.38, -23.60, 1.23)
CIE-LCHlch(30.38, 23.64, 177.01°)
OKLaboklab(39.13% -0.0675 0.0029)
OKLCHoklch(39.13% 0.068 177.5)
XYZxyz(4.1677, 6.3922, 6.6432)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5145 #510C18
analogous
#0C5122 #0C5145 #0C3A51
triadic
#0C5145 #450C51 #51450C
tetradic
#0C5145 #220C51 #510C18 #3A510C
square
#0C5145 #220C51 #510C18 #3A510C
split-complementary
#0C5145 #510C3A #51220C
monochromatic
#041B17 #041C18 #0C5145 #148672 #1CBCA0

Accessibility & contrast

On white

9.22
#0C5145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#0C5145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5145
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5145#FFFFFF#000000##FFFFFF
##0C51451.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4B44
Deuteranopia (green-blind)
#444546
Tritanopia (blue-blind)
#00524D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #0c5145;
/* rgb */ color: rgb(12, 81, 69);
/* oklch */ color: oklch(39.1% 0.068 177.5);
Tailwind
colors: {
  custom: {
    50: '#598278',
    500: '#0c5145',
    950: '#000000',
  },
}
SCSS
$custom: #0c5145;
$custom-light: #598278;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5145",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 69
  },
  "hsl": {
    "h": 169.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39134,
    "c": 0.06759,
    "h": 177.5
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

primary
#0C5145
secondary
#8C2C3D
accent
#3757F1
background
#F5F8F7
surface
#E9EFED
border
#C5CAC8
text
#040A09
muted
#797C7B

Preview Lab

Preview with #0C5145

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

Preview Lab → · Contrast checker → · Palette generator →

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