#0C271F#0C271F

#0C271F is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.9% C 0.037 H 171.1°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#0C271F
RGBrgb(12, 39, 31)
HSLhsl(162, 53%, 10%)
HSVhsv(162, 69%, 15%)
CMYKcmyk(69.2%, 0%, 20.5%, 84.7%)
CIE-LABlab(13.40, -12.80, 2.21)
CIE-LCHlch(13.40, 12.99, 170.22°)
OKLaboklab(24.89% -0.0361 0.0056)
OKLCHoklch(24.89% 0.037 171.1)
XYZxyz(1.1243, 1.6280, 1.5510)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C271F #270C14
analogous
#0C2711 #0C271F #0C2227
triadic
#0C271F #1F0C27 #271F0C
tetradic
#0C271F #110C27 #270C14 #22270C
square
#0C271F #110C27 #270C14 #22270C
split-complementary
#0C271F #270C22 #27110C
monochromatic
#071713 #071713 #0C271F #1A5644 #298569

Accessibility & contrast

On white

15.84
#0C271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0C271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C271F
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C271F#FFFFFF#000000##FFFFFF
##0C271F1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241F
Deuteranopia (green-blind)
#222120
Tritanopia (blue-blind)
#022725
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c271f;
/* rgb */ color: rgb(12, 39, 31);
/* oklch */ color: oklch(24.9% 0.037 171.1);
Tailwind
colors: {
  custom: {
    50: '#4e615a',
    500: '#0c271f',
    950: '#000000',
  },
}
SCSS
$custom: #0c271f;
$custom-light: #4e615a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c271f",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 162.222,
    "s": 52.941,
    "l": 10
  },
  "oklch": {
    "l": 0.24885,
    "c": 0.03657,
    "h": 171.1
  },
  "luminance": 0.01628
}

Semantic roles & 50–950 ramp

primary
#0C271F
secondary
#622D3D
accent
#4B76DC
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010503
muted
#777978

Preview Lab

Preview with #0C271F

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

Preview Lab → · Contrast checker → · Palette generator →

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