#0C271D#0C271D

#0C271D is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.8% C 0.038 H 166.3°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#0C271D
RGBrgb(12, 39, 29)
HSLhsl(158, 53%, 10%)
HSVhsv(158, 69%, 15%)
CMYKcmyk(69.2%, 0%, 25.6%, 84.7%)
CIE-LABlab(13.34, -13.40, 3.54)
CIE-LCHlch(13.34, 13.86, 165.18°)
OKLaboklab(24.81% -0.0373 0.0091)
OKLCHoklch(24.81% 0.038 166.3)
XYZxyz(1.0988, 1.6178, 1.4165)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C271D #270C16
analogous
#0C2710 #0C271D #0C2327
triadic
#0C271D #1D0C27 #271D0C
tetradic
#0C271D #100C27 #270C16 #23270C
square
#0C271D #100C27 #270C16 #23270C
split-complementary
#0C271D #270C23 #27100C
monochromatic
#071711 #071711 #0C271D #1A5640 #298563

Accessibility & contrast

On white

15.87
#0C271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C271D
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C271D#FFFFFF#000000##FFFFFF
##0C271D1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241C
Deuteranopia (green-blind)
#22211E
Tritanopia (blue-blind)
#032724
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c271d;
/* rgb */ color: rgb(12, 39, 29);
/* oklch */ color: oklch(24.8% 0.038 166.3);
Tailwind
colors: {
  custom: {
    50: '#4d6158',
    500: '#0c271d',
    950: '#000000',
  },
}
SCSS
$custom: #0c271d;
$custom-light: #4d6158;
$custom-dark: #000000;
JSON
{
  "hex": "#0c271d",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 157.778,
    "s": 52.941,
    "l": 10
  },
  "oklch": {
    "l": 0.24814,
    "c": 0.03843,
    "h": 166.3
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#0C271D
secondary
#622D41
accent
#4B81DC
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010503
muted
#777978

Preview Lab

Preview with #0C271D

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

Preview Lab → · Contrast checker → · Palette generator →

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