#0C4938#0C4938

#0C4938 is a dark, moderate teal. Relative luminance 0.051; OKLCH L 36.3% C 0.067 H 169.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#0C4938
RGBrgb(12, 73, 56)
HSLhsl(163, 72%, 17%)
HSVhsv(163, 84%, 29%)
CMYKcmyk(83.6%, 0%, 23.3%, 71.4%)
CIE-LABlab(27.10, -23.52, 4.86)
CIE-LCHlch(27.10, 24.01, 168.33°)
OKLaboklab(36.32% -0.0655 0.0124)
OKLCHoklch(36.32% 0.067 169.3)
XYZxyz(3.2476, 5.1284, 4.5593)
Luminance0.0513 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4938 #490C1D
analogous
#0C491A #0C4938 #0C3C49
triadic
#0C4938 #380C49 #49380C
tetradic
#0C4938 #1A0C49 #490C1D #3C490C
square
#0C4938 #1A0C49 #490C1D #3C490C
split-complementary
#0C4938 #490C3C #491A0C
monochromatic
#041A14 #041A14 #0C4938 #157E60 #1DB289

Accessibility & contrast

On white

10.37
#0C4938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#0C4938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4938
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4938#FFFFFF#000000##FFFFFF
##0C49381.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474337
Deuteranopia (green-blind)
#3F3E39
Tritanopia (blue-blind)
#004A44
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #0c4938;
/* rgb */ color: rgb(12, 73, 56);
/* oklch */ color: oklch(36.3% 0.067 169.3);
Tailwind
colors: {
  custom: {
    50: '#567c6e',
    500: '#0c4938',
    950: '#000000',
  },
}
SCSS
$custom: #0c4938;
$custom-light: #567c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4938",
  "rgb": {
    "r": 12,
    "g": 73,
    "b": 56
  },
  "hsl": {
    "h": 163.279,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.36321,
    "c": 0.06662,
    "h": 169.3
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#0C4938
secondary
#852C45
accent
#396CEE
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#030907
muted
#787B7A

Preview Lab

Preview with #0C4938

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

Preview Lab → · Contrast checker → · Palette generator →

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