#0C5131#0C5131

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

Color values

HEX#0C5131
RGBrgb(12, 81, 49)
HSLhsl(152, 74%, 18%)
HSVhsv(152, 85%, 32%)
CMYKcmyk(85.2%, 0%, 39.5%, 68.2%)
CIE-LABlab(29.87, -29.07, 13.13)
CIE-LCHlch(29.87, 31.89, 155.70°)
OKLaboklab(38.55% -0.0786 0.033)
OKLCHoklch(38.55% 0.085 157.2)
XYZxyz(3.6481, 6.1843, 3.9066)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5131 #510C2C
analogous
#0C510E #0C5131 #0C4E51
triadic
#0C5131 #310C51 #51310C
tetradic
#0C5131 #0E0C51 #510C2C #4E510C
square
#0C5131 #0E0C51 #510C2C #4E510C
split-complementary
#0C5131 #510C4E #510E0C
monochromatic
#041B10 #041C11 #0C5131 #148651 #1CBC71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5131#FFFFFF#000000##FFFFFF
##0C51311.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)
#504A2F
Deuteranopia (green-blind)
#484433
Tritanopia (blue-blind)
#005049
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5131;
/* rgb */ color: rgb(12, 81, 49);
/* oklch */ color: oklch(38.5% 0.085 157.2);
Tailwind
colors: {
  custom: {
    50: '#588269',
    500: '#0c5131',
    950: '#000000',
  },
}
SCSS
$custom: #0c5131;
$custom-light: #588269;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5131",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 49
  },
  "hsl": {
    "h": 152.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38549,
    "c": 0.08521,
    "h": 157.2
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#0C5131
secondary
#8C2C59
accent
#378DF1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C5131

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

Preview Lab → · Contrast checker → · Palette generator →

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