#0C4040#0C4040

#0C4040 is a dark, muted teal. Relative luminance 0.041; OKLCH L 33.9% C 0.052 H 195.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#0C4040
RGBrgb(12, 64, 64)
HSLhsl(180, 68%, 15%)
HSVhsv(180, 81%, 25%)
CMYKcmyk(81.2%, 0%, 0%, 74.9%)
CIE-LABlab(24.05, -16.20, -4.84)
CIE-LCHlch(24.05, 16.91, 196.64°)
OKLaboklab(33.92% -0.0503 -0.0135)
OKLCHoklch(33.92% 0.052 195)
XYZxyz(2.9100, 4.1148, 5.4904)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4040 #400C0C
analogous
#0C4026 #0C4040 #0C2640
triadic
#0C4040 #400C40 #40400C
tetradic
#0C4040 #260C40 #400C0C #26400C
square
#0C4040 #260C40 #400C0C #26400C
split-complementary
#0C4040 #400C26 #40260C
monochromatic
#051A1A #051A1A #0C4040 #167474 #1FA7A7

Accessibility & contrast

On white

11.52
#0C4040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#0C4040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4040
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4040#FFFFFF#000000##FFFFFF
##0C40401.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3C40
Deuteranopia (green-blind)
#343740
Tritanopia (blue-blind)
#004240
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c4040;
/* rgb */ color: rgb(12, 64, 64);
/* oklch */ color: oklch(33.9% 0.052 195.0);
Tailwind
colors: {
  custom: {
    50: '#557574',
    500: '#0c4040',
    950: '#000000',
  },
}
SCSS
$custom: #0c4040;
$custom-light: #557574;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4040",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 64
  },
  "hsl": {
    "h": 180,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33917,
    "c": 0.05208,
    "h": 195
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#0C4040
secondary
#7C2C2C
accent
#3D3DEB
background
#F5F7F7
surface
#E9EDED
border
#C5C8C8
text
#030808
muted
#787B7B

Preview Lab

Preview with #0C4040

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

Preview Lab → · Contrast checker → · Palette generator →

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