#0C5148#0C5148

#0C5148 is a dark, moderate teal. Relative luminance 0.064; OKLCH L 39.2% C 0.066 H 181.6°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#0C5148
RGBrgb(12, 81, 72)
HSLhsl(172, 74%, 18%)
HSVhsv(172, 85%, 32%)
CMYKcmyk(85.2%, 0%, 11.1%, 68.2%)
CIE-LABlab(30.47, -22.66, -0.55)
CIE-LCHlch(30.47, 22.67, 181.38°)
OKLaboklab(39.24% -0.0659 -0.0018)
OKLCHoklch(39.24% 0.066 181.6)
XYZxyz(4.2632, 6.4304, 7.1461)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5148 #510C15
analogous
#0C5125 #0C5148 #0C3751
triadic
#0C5148 #480C51 #51480C
tetradic
#0C5148 #250C51 #510C15 #37510C
square
#0C5148 #250C51 #510C15 #37510C
split-complementary
#0C5148 #510C37 #51250C
monochromatic
#041B18 #041C19 #0C5148 #148677 #1CBCA7

Accessibility & contrast

On white

9.19
#0C5148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#0C5148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5148
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5148#FFFFFF#000000##FFFFFF
##0C51481.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4C48
Deuteranopia (green-blind)
#444549
Tritanopia (blue-blind)
#00534E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #0c5148;
/* rgb */ color: rgb(12, 81, 72);
/* oklch */ color: oklch(39.2% 0.066 181.6);
Tailwind
colors: {
  custom: {
    50: '#59827a',
    500: '#0c5148',
    950: '#000000',
  },
}
SCSS
$custom: #0c5148;
$custom-light: #59827a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5148",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 72
  },
  "hsl": {
    "h": 172.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.06593,
    "h": 181.6
  },
  "luminance": 0.06431
}

Semantic roles & 50–950 ramp

primary
#0C5148
secondary
#8C2C39
accent
#374FF1
background
#F5F8F7
surface
#E9EFED
border
#C5CAC8
text
#040A09
muted
#797C7B

Preview Lab

Preview with #0C5148

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

Preview Lab → · Contrast checker → · Palette generator →

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