#0C5042#0C5042

#0C5042 is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.7% C 0.068 H 174.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#0C5042
RGBrgb(12, 80, 66)
HSLhsl(168, 74%, 18%)
HSVhsv(168, 85%, 31%)
CMYKcmyk(85%, 0%, 17.5%, 68.6%)
CIE-LABlab(29.93, -24.02, 2.50)
CIE-LCHlch(29.93, 24.15, 174.07°)
OKLaboklab(38.74% -0.068 0.0062)
OKLCHoklch(38.74% 0.068 174.8)
XYZxyz(4.0031, 6.2083, 6.1405)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5042 #500C1A
analogous
#0C5020 #0C5042 #0C3C50
triadic
#0C5042 #420C50 #50420C
tetradic
#0C5042 #200C50 #500C1A #3C500C
square
#0C5042 #200C50 #500C1A #3C500C
split-complementary
#0C5042 #500C3C #50200C
monochromatic
#041B16 #041B16 #0C5042 #14856E #1CBA9A

Accessibility & contrast

On white

9.37
#0C5042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#0C5042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5042
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5042#FFFFFF#000000##FFFFFF
##0C50421.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4A41
Deuteranopia (green-blind)
#444443
Tritanopia (blue-blind)
#00514C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5042;
/* rgb */ color: rgb(12, 80, 66);
/* oklch */ color: oklch(38.7% 0.068 174.8);
Tailwind
colors: {
  custom: {
    50: '#598176',
    500: '#0c5042',
    950: '#000000',
  },
}
SCSS
$custom: #0c5042;
$custom-light: #598176;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5042",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 66
  },
  "hsl": {
    "h": 167.647,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38737,
    "c": 0.06832,
    "h": 174.8
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#0C5042
secondary
#8B2C40
accent
#375DF1
background
#F5F7F7
surface
#E9EEED
border
#C5C9C8
text
#040A08
muted
#797C7B

Preview Lab

Preview with #0C5042

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

Preview Lab → · Contrast checker → · Palette generator →

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