#0C4838#0C4838

#0C4838 is a dark, moderate teal. Relative luminance 0.050; OKLCH L 36.0% C 0.065 H 170.2°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#0C4838
RGBrgb(12, 72, 56)
HSLhsl(164, 71%, 16%)
HSVhsv(164, 83%, 28%)
CMYKcmyk(83.3%, 0%, 22.2%, 71.8%)
CIE-LABlab(26.73, -23.02, 4.33)
CIE-LCHlch(26.73, 23.43, 169.35°)
OKLaboklab(36.02% -0.0643 0.0111)
OKLCHoklch(36.02% 0.065 170.2)
XYZxyz(3.1824, 4.9980, 4.5376)
Luminance0.0500 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4838 #480C1C
analogous
#0C481A #0C4838 #0C3A48
triadic
#0C4838 #380C48 #48380C
tetradic
#0C4838 #1A0C48 #480C1C #3A480C
square
#0C4838 #1A0C48 #480C1C #3A480C
split-complementary
#0C4838 #480C3A #481A0C
monochromatic
#041A14 #041A14 #0C4838 #157C61 #1DB18A

Accessibility & contrast

On white

10.50
#0C4838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#0C4838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4838
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4838#FFFFFF#000000##FFFFFF
##0C48381.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464237
Deuteranopia (green-blind)
#3E3D39
Tritanopia (blue-blind)
#004943
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #0c4838;
/* rgb */ color: rgb(12, 72, 56);
/* oklch */ color: oklch(36.0% 0.065 170.2);
Tailwind
colors: {
  custom: {
    50: '#567b6e',
    500: '#0c4838',
    950: '#000000',
  },
}
SCSS
$custom: #0c4838;
$custom-light: #567b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4838",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 56
  },
  "hsl": {
    "h": 164,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.36019,
    "c": 0.06523,
    "h": 170.2
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#0C4838
secondary
#842C43
accent
#3A6AEE
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#030907
muted
#787B7A

Preview Lab

Preview with #0C4838

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

Preview Lab → · Contrast checker → · Palette generator →

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