#0C5237#0C5237

#0C5237 is a dark, moderate teal. Relative luminance 0.064; OKLCH L 39.0% C 0.081 H 161.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#0C5237
RGBrgb(12, 82, 55)
HSLhsl(157, 74%, 18%)
HSVhsv(157, 85%, 32%)
CMYKcmyk(85.4%, 0%, 32.9%, 67.8%)
CIE-LABlab(30.37, -28.04, 10.08)
CIE-LCHlch(30.37, 29.79, 160.24°)
OKLaboklab(39% -0.0764 0.0256)
OKLCHoklch(39% 0.081 161.5)
XYZxyz(3.8581, 6.3881, 4.6434)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5237 #520C27
analogous
#0C5214 #0C5237 #0C4A52
triadic
#0C5237 #370C52 #52370C
tetradic
#0C5237 #140C52 #520C27 #4A520C
square
#0C5237 #140C52 #520C27 #4A520C
split-complementary
#0C5237 #520C4A #52140C
monochromatic
#041B12 #041D13 #0C5237 #14875B #1CBD7F

Accessibility & contrast

On white

9.22
#0C5237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#0C5237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5237
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5237#FFFFFF#000000##FFFFFF
##0C52371.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514B35
Deuteranopia (green-blind)
#484539
Tritanopia (blue-blind)
#00524B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5237;
/* rgb */ color: rgb(12, 82, 55);
/* oklch */ color: oklch(39.0% 0.081 161.5);
Tailwind
colors: {
  custom: {
    50: '#59836e',
    500: '#0c5237',
    950: '#000000',
  },
}
SCSS
$custom: #0c5237;
$custom-light: #59836e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5237",
  "rgb": {
    "r": 12,
    "g": 82,
    "b": 55
  },
  "hsl": {
    "h": 156.857,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.08057,
    "h": 161.5
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#0C5237
secondary
#8D2C52
accent
#377FF1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B07
muted
#797C7A

Preview Lab

Preview with #0C5237

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

Preview Lab → · Contrast checker → · Palette generator →

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