#0C5147#0C5147

#0C5147 is a dark, moderate teal. Relative luminance 0.064; OKLCH L 39.2% C 0.066 H 180.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#0C5147
RGBrgb(12, 81, 71)
HSLhsl(171, 74%, 18%)
HSVhsv(171, 85%, 32%)
CMYKcmyk(85.2%, 0%, 12.3%, 68.2%)
CIE-LABlab(30.44, -22.98, 0.04)
CIE-LCHlch(30.44, 22.98, 179.89°)
OKLaboklab(39.2% -0.0664 -0.0003)
OKLCHoklch(39.2% 0.066 180.2)
XYZxyz(4.2308, 6.4174, 6.9757)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5147 #510C16
analogous
#0C5124 #0C5147 #0C3851
triadic
#0C5147 #470C51 #51470C
tetradic
#0C5147 #240C51 #510C16 #38510C
square
#0C5147 #240C51 #510C16 #38510C
split-complementary
#0C5147 #510C38 #51240C
monochromatic
#041B17 #041C18 #0C5147 #148676 #1CBCA4

Accessibility & contrast

On white

9.20
#0C5147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5147
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5147#FFFFFF#000000##FFFFFF
##0C51471.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4C47
Deuteranopia (green-blind)
#444548
Tritanopia (blue-blind)
#00534E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #0c5147;
/* rgb */ color: rgb(12, 81, 71);
/* oklch */ color: oklch(39.2% 0.066 180.2);
Tailwind
colors: {
  custom: {
    50: '#59827a',
    500: '#0c5147',
    950: '#000000',
  },
}
SCSS
$custom: #0c5147;
$custom-light: #59827a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5147",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 71
  },
  "hsl": {
    "h": 171.304,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39204,
    "c": 0.06644,
    "h": 180.2
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#0C5147
secondary
#8C2C3A
accent
#3752F1
background
#F5F8F7
surface
#E9EFED
border
#C5CAC8
text
#040A09
muted
#797C7B

Preview Lab

Preview with #0C5147

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

Preview Lab → · Contrast checker → · Palette generator →

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