#0C4228#0C4228

#0C4228 is a dark, moderate teal. Relative luminance 0.041; OKLCH L 33.7% C 0.072 H 157.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#0C4228
RGBrgb(12, 66, 40)
HSLhsl(151, 69%, 15%)
HSVhsv(151, 82%, 26%)
CMYKcmyk(81.8%, 0%, 39.4%, 74.1%)
CIE-LABlab(24.09, -24.44, 10.99)
CIE-LCHlch(24.09, 26.80, 155.79°)
OKLaboklab(33.72% -0.0662 0.0277)
OKLCHoklch(33.72% 0.072 157.3)
XYZxyz(2.4826, 4.1275, 2.6729)
Luminance0.0413 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4228 #420C26
analogous
#0C420D #0C4228 #0C4142
triadic
#0C4228 #280C42 #42280C
tetradic
#0C4228 #0D0C42 #420C26 #41420C
square
#0C4228 #0D0C42 #420C26 #41420C
split-complementary
#0C4228 #420C41 #420D0C
monochromatic
#051A10 #051A10 #0C4228 #157647 #1FAA67

Accessibility & contrast

On white

11.50
#0C4228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#0C4228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4228
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4228#FFFFFF#000000##FFFFFF
##0C42281.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413C26
Deuteranopia (green-blind)
#3B372A
Tritanopia (blue-blind)
#00413B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c4228;
/* rgb */ color: rgb(12, 66, 40);
/* oklch */ color: oklch(33.7% 0.072 157.3);
Tailwind
colors: {
  custom: {
    50: '#547762',
    500: '#0c4228',
    950: '#000000',
  },
}
SCSS
$custom: #0c4228;
$custom-light: #547762;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4228",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 40
  },
  "hsl": {
    "h": 151.111,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33718,
    "c": 0.07176,
    "h": 157.3
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#0C4228
secondary
#7E2C53
accent
#3C91EC
background
#F5F7F5
surface
#E9EDEA
border
#C5C8C6
text
#030805
muted
#787B79

Preview Lab

Preview with #0C4228

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

Preview Lab → · Contrast checker → · Palette generator →

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