#0C5134#0C5134

#0C5134 is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.6% C 0.082 H 159.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#0C5134
RGBrgb(12, 81, 52)
HSLhsl(155, 74%, 18%)
HSVhsv(155, 85%, 32%)
CMYKcmyk(85.2%, 0%, 35.8%, 68.2%)
CIE-LABlab(29.94, -28.34, 11.35)
CIE-LCHlch(29.94, 30.53, 158.17°)
OKLaboklab(38.62% -0.0769 0.0287)
OKLCHoklch(38.62% 0.082 159.5)
XYZxyz(3.7135, 6.2105, 4.2512)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5134 #510C29
analogous
#0C5111 #0C5134 #0C4B51
triadic
#0C5134 #340C51 #51340C
tetradic
#0C5134 #110C51 #510C29 #4B510C
square
#0C5134 #110C51 #510C29 #4B510C
split-complementary
#0C5134 #510C4B #51110C
monochromatic
#041B11 #041C12 #0C5134 #148656 #1CBC78

Accessibility & contrast

On white

9.37
#0C5134 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5134
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5134#FFFFFF#000000##FFFFFF
##0C51341.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504A32
Deuteranopia (green-blind)
#484436
Tritanopia (blue-blind)
#005149
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5134;
/* rgb */ color: rgb(12, 81, 52);
/* oklch */ color: oklch(38.6% 0.082 159.5);
Tailwind
colors: {
  custom: {
    50: '#58826b',
    500: '#0c5134',
    950: '#000000',
  },
}
SCSS
$custom: #0c5134;
$custom-light: #58826b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5134",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 52
  },
  "hsl": {
    "h": 154.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38623,
    "c": 0.08211,
    "h": 159.5
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#0C5134
secondary
#8C2C55
accent
#3785F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C5134

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

Preview Lab → · Contrast checker → · Palette generator →

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