#0C312F#0C312F

#0C312F is a dark, muted teal. Relative luminance 0.025; OKLCH L 28.7% C 0.041 H 190.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#0C312F
RGBrgb(12, 49, 47)
HSLhsl(177, 61%, 12%)
HSVhsv(177, 76%, 19%)
CMYKcmyk(75.5%, 0%, 4.1%, 80.8%)
CIE-LABlab(17.83, -13.46, -2.58)
CIE-LCHlch(17.83, 13.70, 190.85°)
OKLaboklab(28.66% -0.0407 -0.0072)
OKLCHoklch(28.66% 0.041 190)
XYZxyz(1.7628, 2.4798, 3.0745)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C312F #310C0E
analogous
#0C311D #0C312F #0C2131
triadic
#0C312F #2F0C31 #312F0C
tetradic
#0C312F #1D0C31 #310C0E #21310C
square
#0C312F #1D0C31 #310C0E #21310C
split-complementary
#0C312F #310C21 #311D0C
monochromatic
#061918 #061918 #0C312F #18625E #24938D

Accessibility & contrast

On white

14.04
#0C312F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#0C312F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C312F
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C312F#FFFFFF#000000##FFFFFF
##0C312F1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2E2F
Deuteranopia (green-blind)
#282A2F
Tritanopia (blue-blind)
#003230
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c312f;
/* rgb */ color: rgb(12, 49, 47);
/* oklch */ color: oklch(28.7% 0.041 190.0);
Tailwind
colors: {
  custom: {
    50: '#516967',
    500: '#0c312f',
    950: '#000000',
  },
}
SCSS
$custom: #0c312f;
$custom-light: #516967;
$custom-dark: #000000;
JSON
{
  "hex": "#0c312f",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 47
  },
  "hsl": {
    "h": 176.757,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.28662,
    "c": 0.04134,
    "h": 190
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#0C312F
secondary
#6D2C2F
accent
#444DE4
background
#F4F6F6
surface
#E7EBEB
border
#C3C6C6
text
#020606
muted
#787A7A

Preview Lab

Preview with #0C312F

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

Preview Lab → · Contrast checker → · Palette generator →

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