#0C5139#0C5139

#0C5139 is a dark, moderate teal. Relative luminance 0.063; OKLCH L 38.8% C 0.077 H 163.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#0C5139
RGBrgb(12, 81, 57)
HSLhsl(159, 74%, 18%)
HSVhsv(159, 85%, 32%)
CMYKcmyk(85.2%, 0%, 29.6%, 68.2%)
CIE-LABlab(30.05, -27.06, 8.38)
CIE-LCHlch(30.05, 28.33, 162.79°)
OKLaboklab(38.76% -0.0742 0.0214)
OKLCHoklch(38.76% 0.077 163.9)
XYZxyz(3.8321, 6.2580, 4.8760)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5139 #510C24
analogous
#0C5116 #0C5139 #0C4651
triadic
#0C5139 #390C51 #51390C
tetradic
#0C5139 #160C51 #510C24 #46510C
square
#0C5139 #160C51 #510C24 #46510C
split-complementary
#0C5139 #510C46 #51160C
monochromatic
#041B13 #041C13 #0C5139 #14865F #1CBC84

Accessibility & contrast

On white

9.33
#0C5139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#0C5139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5139
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5139#FFFFFF#000000##FFFFFF
##0C51391.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4A38
Deuteranopia (green-blind)
#47443B
Tritanopia (blue-blind)
#00514A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5139;
/* rgb */ color: rgb(12, 81, 57);
/* oklch */ color: oklch(38.8% 0.077 163.9);
Tailwind
colors: {
  custom: {
    50: '#59826f',
    500: '#0c5139',
    950: '#000000',
  },
}
SCSS
$custom: #0c5139;
$custom-light: #59826f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5139",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 57
  },
  "hsl": {
    "h": 159.13,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38758,
    "c": 0.07717,
    "h": 163.9
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#0C5139
secondary
#8C2C4E
accent
#3778F1
background
#F5F8F6
surface
#E9EFEC
border
#C5CAC7
text
#040A07
muted
#797C7A

Preview Lab

Preview with #0C5139

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

Preview Lab → · Contrast checker → · Palette generator →

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