#0C2F2A#0C2F2A

#0C2F2A is a dark, muted teal. Relative luminance 0.023; OKLCH L 27.8% C 0.041 H 182.2°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#0C2F2A
RGBrgb(12, 47, 42)
HSLhsl(171, 59%, 12%)
HSVhsv(171, 74%, 18%)
CMYKcmyk(74.5%, 0%, 10.6%, 81.6%)
CIE-LABlab(16.88, -13.98, -0.50)
CIE-LCHlch(16.88, 13.99, 182.03°)
OKLaboklab(27.84% -0.0409 -0.0016)
OKLCHoklch(27.84% 0.041 182.2)
XYZxyz(1.5859, 2.2782, 2.5462)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F2A #2F0C11
analogous
#0C2F19 #0C2F2A #0C232F
triadic
#0C2F2A #2A0C2F #2F2A0C
tetradic
#0C2F2A #190C2F #2F0C11 #232F0C
square
#0C2F2A #190C2F #2F0C11 #232F0C
split-complementary
#0C2F2A #2F0C23 #2F190C
monochromatic
#061816 #061816 #0C2F2A #186056 #259181

Accessibility & contrast

On white

14.43
#0C2F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0C2F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2F2A
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F2A#FFFFFF#000000##FFFFFF
##0C2F2A1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2C2A
Deuteranopia (green-blind)
#27282A
Tritanopia (blue-blind)
#00302D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2f2a;
/* rgb */ color: rgb(12, 47, 42);
/* oklch */ color: oklch(27.8% 0.041 182.2);
Tailwind
colors: {
  custom: {
    50: '#506763',
    500: '#0c2f2a',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f2a;
$custom-light: #506763;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f2a",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 42
  },
  "hsl": {
    "h": 171.429,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.27838,
    "c": 0.0409,
    "h": 182.2
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#0C2F2A
secondary
#6B2C35
accent
#455CE3
background
#F4F6F5
surface
#E7EBEA
border
#C3C6C6
text
#020605
muted
#787A79

Preview Lab

Preview with #0C2F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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