#0C5040#0C5040

#0C5040 is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.7% C 0.070 H 172.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#0C5040
RGBrgb(12, 80, 64)
HSLhsl(166, 74%, 18%)
HSVhsv(166, 85%, 31%)
CMYKcmyk(85%, 0%, 20%, 68.6%)
CIE-LABlab(29.88, -24.62, 3.69)
CIE-LCHlch(29.88, 24.89, 171.48°)
OKLaboklab(38.67% -0.0691 0.0094)
OKLCHoklch(38.67% 0.07 172.3)
XYZxyz(3.9452, 6.1852, 5.8354)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5040 #500C1C
analogous
#0C501E #0C5040 #0C3E50
triadic
#0C5040 #400C50 #50400C
tetradic
#0C5040 #1E0C50 #500C1C #3E500C
square
#0C5040 #1E0C50 #500C1C #3E500C
split-complementary
#0C5040 #500C3E #501E0C
monochromatic
#041B15 #041B15 #0C5040 #14856B #1CBA95

Accessibility & contrast

On white

9.39
#0C5040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#0C5040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5040
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5040#FFFFFF#000000##FFFFFF
##0C50401.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4A3F
Deuteranopia (green-blind)
#454441
Tritanopia (blue-blind)
#00514B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5040;
/* rgb */ color: rgb(12, 80, 64);
/* oklch */ color: oklch(38.7% 0.070 172.3);
Tailwind
colors: {
  custom: {
    50: '#598174',
    500: '#0c5040',
    950: '#000000',
  },
}
SCSS
$custom: #0c5040;
$custom-light: #598174;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5040",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 64
  },
  "hsl": {
    "h": 165.882,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38672,
    "c": 0.06976,
    "h": 172.3
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#0C5040
secondary
#8B2C43
accent
#3763F1
background
#F5F7F7
surface
#E9EEED
border
#C5C9C8
text
#040A08
muted
#797C7B

Preview Lab

Preview with #0C5040

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

Preview Lab → · Contrast checker → · Palette generator →

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