#0C5157#0C5157

#0C5157 is a dark, moderate teal. Relative luminance 0.067; OKLCH L 39.8% C 0.064 H 204.1°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#0C5157
RGBrgb(12, 81, 87)
HSLhsl(185, 76%, 19%)
HSVhsv(185, 86%, 34%)
CMYKcmyk(86.2%, 6.9%, 0%, 65.9%)
CIE-LABlab(31.00, -17.59, -9.34)
CIE-LCHlch(31.00, 19.91, 207.97°)
OKLaboklab(39.84% -0.0582 -0.026)
OKLCHoklch(39.84% 0.064 204.1)
XYZxyz(4.8136, 6.6505, 10.0450)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5157 #57120C
analogous
#0C5738 #0C5157 #0C2C57
triadic
#0C5157 #570C51 #51570C
tetradic
#0C5157 #380C57 #57120C #2C570C
square
#0C5157 #380C57 #57120C #2C570C
split-complementary
#0C5157 #570C2C #57380C
monochromatic
#04191B #051F21 #0C5157 #13838D #1BB5C3

Accessibility & contrast

On white

9.01
#0C5157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#0C5157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5157
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5157#FFFFFF#000000##FFFFFF
##0C51571.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4D57
Deuteranopia (green-blind)
#3F4657
Tritanopia (blue-blind)
#005553
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #0c5157;
/* rgb */ color: rgb(12, 81, 87);
/* oklch */ color: oklch(39.8% 0.064 204.1);
Tailwind
colors: {
  custom: {
    50: '#5b8286',
    500: '#0c5157',
    950: '#000000',
  },
}
SCSS
$custom: #0c5157;
$custom-light: #5b8286;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5157",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 87
  },
  "hsl": {
    "h": 184.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39841,
    "c": 0.0637,
    "h": 204.1
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#0C5157
secondary
#92352D
accent
#4535F2
background
#F5F7F8
surface
#E9EEEF
border
#C5C9CA
text
#050A0B
muted
#797C7C

Preview Lab

Preview with #0C5157

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

Preview Lab → · Contrast checker → · Palette generator →

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