#0C5141#0C5141

#0C5141 is a dark, moderate teal. Relative luminance 0.063; OKLCH L 39.0% C 0.070 H 172.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#0C5141
RGBrgb(12, 81, 65)
HSLhsl(166, 74%, 18%)
HSVhsv(166, 85%, 32%)
CMYKcmyk(85.2%, 0%, 19.8%, 68.2%)
CIE-LABlab(30.26, -24.81, 3.61)
CIE-LCHlch(30.26, 25.07, 171.72°)
OKLaboklab(39% -0.0697 0.0092)
OKLCHoklch(39% 0.07 172.5)
XYZxyz(4.0477, 6.3442, 6.0112)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5141 #510C1C
analogous
#0C511E #0C5141 #0C3E51
triadic
#0C5141 #410C51 #51410C
tetradic
#0C5141 #1E0C51 #510C1C #3E510C
square
#0C5141 #1E0C51 #510C1C #3E510C
split-complementary
#0C5141 #510C3E #511E0C
monochromatic
#041B15 #041C16 #0C5141 #14866C #1CBC97

Accessibility & contrast

On white

9.26
#0C5141 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#0C5141 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5141
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5141#FFFFFF#000000##FFFFFF
##0C51411.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4B40
Deuteranopia (green-blind)
#454542
Tritanopia (blue-blind)
#00524C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5141;
/* rgb */ color: rgb(12, 81, 65);
/* oklch */ color: oklch(39.0% 0.070 172.5);
Tailwind
colors: {
  custom: {
    50: '#598275',
    500: '#0c5141',
    950: '#000000',
  },
}
SCSS
$custom: #0c5141;
$custom-light: #598275;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5141",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 65
  },
  "hsl": {
    "h": 166.087,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39,
    "c": 0.07032,
    "h": 172.5
  },
  "luminance": 0.06345
}

Semantic roles & 50–950 ramp

primary
#0C5141
secondary
#8C2C43
accent
#3762F1
background
#F5F8F7
surface
#E9EFED
border
#C5CAC8
text
#040A08
muted
#797C7B

Preview Lab

Preview with #0C5141

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

Preview Lab → · Contrast checker → · Palette generator →

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