#0C312E#0C312E

#0C312E is a dark, muted teal. Relative luminance 0.025; OKLCH L 28.6% C 0.042 H 187.6°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#0C312E
RGBrgb(12, 49, 46)
HSLhsl(175, 61%, 12%)
HSVhsv(175, 76%, 19%)
CMYKcmyk(75.5%, 0%, 6.1%, 80.8%)
CIE-LABlab(17.79, -13.80, -1.94)
CIE-LCHlch(17.79, 13.94, 188.00°)
OKLaboklab(28.62% -0.0413 -0.0055)
OKLCHoklch(28.62% 0.042 187.6)
XYZxyz(1.7429, 2.4719, 2.9695)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C312E #310C0F
analogous
#0C311C #0C312E #0C2231
triadic
#0C312E #2E0C31 #312E0C
tetradic
#0C312E #1C0C31 #310C0F #22310C
square
#0C312E #1C0C31 #310C0F #22310C
split-complementary
#0C312E #310C22 #311C0C
monochromatic
#061917 #061917 #0C312E #18625C #24938A

Accessibility & contrast

On white

14.05
#0C312E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#0C312E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C312E
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C312E#FFFFFF#000000##FFFFFF
##0C312E1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c312e;
/* rgb */ color: rgb(12, 49, 46);
/* oklch */ color: oklch(28.6% 0.042 187.6);
Tailwind
colors: {
  custom: {
    50: '#516966',
    500: '#0c312e',
    950: '#000000',
  },
}
SCSS
$custom: #0c312e;
$custom-light: #516966;
$custom-dark: #000000;
JSON
{
  "hex": "#0c312e",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 46
  },
  "hsl": {
    "h": 175.135,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.28621,
    "c": 0.04163,
    "h": 187.6
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#0C312E
secondary
#6D2C31
accent
#4451E4
background
#F4F6F6
surface
#E7EBEB
border
#C3C6C6
text
#020606
muted
#787A7A

Preview Lab

Preview with #0C312E

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

Preview Lab → · Contrast checker → · Palette generator →

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