#0C301F#0C301F

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

Color values

HEX#0C301F
RGBrgb(12, 48, 31)
HSLhsl(152, 60%, 12%)
HSVhsv(152, 75%, 19%)
CMYKcmyk(75%, 0%, 35.4%, 81.2%)
CIE-LABlab(16.94, -17.83, 7.19)
CIE-LCHlch(16.94, 19.23, 158.03°)
OKLaboklab(27.78% -0.0487 0.0183)
OKLCHoklch(27.78% 0.052 159.4)
XYZxyz(1.4558, 2.2908, 1.6615)
Luminance0.0229 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C301F #300C1D
analogous
#0C300D #0C301F #0C2F30
triadic
#0C301F #1F0C30 #301F0C
tetradic
#0C301F #0D0C30 #300C1D #2F300C
square
#0C301F #0D0C30 #300C1D #2F300C
split-complementary
#0C301F #300C2F #300D0C
monochromatic
#061810 #061810 #0C301F #18613F #24925E

Accessibility & contrast

On white

14.40
#0C301F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C301F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C301F#FFFFFF#000000##FFFFFF
##0C301F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2C1E
Deuteranopia (green-blind)
#2B2820
Tritanopia (blue-blind)
#00302B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c301f;
/* rgb */ color: rgb(12, 48, 31);
/* oklch */ color: oklch(27.8% 0.052 159.4);
Tailwind
colors: {
  custom: {
    50: '#50685a',
    500: '#0c301f',
    950: '#000000',
  },
}
SCSS
$custom: #0c301f;
$custom-light: #50685a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c301f",
  "rgb": {
    "r": 12,
    "g": 48,
    "b": 31
  },
  "hsl": {
    "h": 151.667,
    "s": 60,
    "l": 11.765
  },
  "oklch": {
    "l": 0.27779,
    "c": 0.05202,
    "h": 159.4
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#0C301F
secondary
#6C2C4A
accent
#458FE3
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#020603
muted
#787A78

Preview Lab

Preview with #0C301F

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

Preview Lab → · Contrast checker → · Palette generator →

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