#0C4831#0C4831

#0C4831 is a dark, moderate teal. Relative luminance 0.049; OKLCH L 35.8% C 0.072 H 162.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#0C4831
RGBrgb(12, 72, 49)
HSLhsl(157, 71%, 16%)
HSVhsv(157, 83%, 28%)
CMYKcmyk(83.3%, 0%, 31.9%, 71.8%)
CIE-LABlab(26.55, -24.97, 8.59)
CIE-LCHlch(26.55, 26.41, 161.03°)
OKLaboklab(35.81% -0.0682 0.0218)
OKLCHoklch(35.81% 0.072 162.3)
XYZxyz(3.0230, 4.9343, 3.6982)
Luminance0.0493 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4831 #480C23
analogous
#0C4813 #0C4831 #0C4148
triadic
#0C4831 #310C48 #48310C
tetradic
#0C4831 #130C48 #480C23 #41480C
square
#0C4831 #130C48 #480C23 #41480C
split-complementary
#0C4831 #480C41 #48130C
monochromatic
#041A12 #041A12 #0C4831 #157C55 #1DB178

Accessibility & contrast

On white

10.57
#0C4831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#0C4831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4831
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4831#FFFFFF#000000##FFFFFF
##0C48311.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474230
Deuteranopia (green-blind)
#3F3D32
Tritanopia (blue-blind)
#004842
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #0c4831;
/* rgb */ color: rgb(12, 72, 49);
/* oklch */ color: oklch(35.8% 0.072 162.3);
Tailwind
colors: {
  custom: {
    50: '#567b69',
    500: '#0c4831',
    950: '#000000',
  },
}
SCSS
$custom: #0c4831;
$custom-light: #567b69;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4831",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 49
  },
  "hsl": {
    "h": 157,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35809,
    "c": 0.07165,
    "h": 162.3
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#0C4831
secondary
#842C4E
accent
#3A7FEE
background
#F5F7F6
surface
#E9EEEB
border
#C5C9C6
text
#030906
muted
#787B7A

Preview Lab

Preview with #0C4831

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

Preview Lab → · Contrast checker → · Palette generator →

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