#0C4F2F#0C4F2F

#0C4F2F is a dark, moderate teal. Relative luminance 0.059; OKLCH L 37.9% C 0.084 H 156.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#0C4F2F
RGBrgb(12, 79, 47)
HSLhsl(151, 74%, 18%)
HSVhsv(151, 85%, 31%)
CMYKcmyk(84.8%, 0%, 40.5%, 69%)
CIE-LABlab(29.09, -28.66, 13.32)
CIE-LCHlch(29.09, 31.60, 155.07°)
OKLaboklab(37.89% -0.0774 0.0334)
OKLCHoklch(37.89% 0.084 156.7)
XYZxyz(3.4603, 5.8749, 3.6404)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F2F #4F0C2C
analogous
#0C4F0D #0C4F2F #0C4D4F
triadic
#0C4F2F #2F0C4F #4F2F0C
tetradic
#0C4F2F #0D0C4F #4F0C2C #4D4F0C
square
#0C4F2F #0D0C4F #4F0C2C #4D4F0C
split-complementary
#0C4F2F #4F0C4D #4F0D0C
monochromatic
#041B10 #041B10 #0C4F2F #14844F #1CB96E

Accessibility & contrast

On white

9.66
#0C4F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#0C4F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F2F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F2F#FFFFFF#000000##FFFFFF
##0C4F2F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E482D
Deuteranopia (green-blind)
#474231
Tritanopia (blue-blind)
#004E47
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c4f2f;
/* rgb */ color: rgb(12, 79, 47);
/* oklch */ color: oklch(37.9% 0.084 156.7);
Tailwind
colors: {
  custom: {
    50: '#588167',
    500: '#0c4f2f',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f2f;
$custom-light: #588167;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f2f",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 47
  },
  "hsl": {
    "h": 151.343,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37893,
    "c": 0.0843,
    "h": 156.7
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#0C4F2F
secondary
#8B2C59
accent
#3890F0
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C4F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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