#0C5140#0C5140

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

Color values

HEX#0C5140
RGBrgb(12, 81, 64)
HSLhsl(165, 74%, 18%)
HSVhsv(165, 85%, 32%)
CMYKcmyk(85.2%, 0%, 21%, 68.2%)
CIE-LABlab(30.24, -25.10, 4.21)
CIE-LCHlch(30.24, 25.45, 170.48°)
OKLaboklab(38.97% -0.0703 0.0107)
OKLCHoklch(38.97% 0.071 171.3)
XYZxyz(4.0190, 6.3327, 5.8600)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5140 #510C1D
analogous
#0C511D #0C5140 #0C3F51
triadic
#0C5140 #400C51 #51400C
tetradic
#0C5140 #1D0C51 #510C1D #3F510C
square
#0C5140 #1D0C51 #510C1D #3F510C
split-complementary
#0C5140 #510C3F #511D0C
monochromatic
#041B15 #041C16 #0C5140 #14866A #1CBC94

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5140#FFFFFF#000000##FFFFFF
##0C51401.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)
#4E4B3F
Deuteranopia (green-blind)
#464541
Tritanopia (blue-blind)
#00524C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5140;
/* rgb */ color: rgb(12, 81, 64);
/* oklch */ color: oklch(39.0% 0.071 171.3);
Tailwind
colors: {
  custom: {
    50: '#598274',
    500: '#0c5140',
    950: '#000000',
  },
}
SCSS
$custom: #0c5140;
$custom-light: #598274;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5140",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 64
  },
  "hsl": {
    "h": 165.217,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.07109,
    "h": 171.3
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

primary
#0C5140
secondary
#8C2C44
accent
#3765F1
background
#F5F8F7
surface
#E9EFED
border
#C5CAC8
text
#040A08
muted
#797C7B

Preview Lab

Preview with #0C5140

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

Preview Lab → · Contrast checker → · Palette generator →

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