#0C402A#0C402A

#0C402A is a dark, moderate teal. Relative luminance 0.039; OKLCH L 33.1% C 0.066 H 160.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#0C402A
RGBrgb(12, 64, 42)
HSLhsl(155, 68%, 15%)
HSVhsv(155, 81%, 25%)
CMYKcmyk(81.2%, 0%, 34.4%, 74.9%)
CIE-LABlab(23.38, -22.99, 8.73)
CIE-LCHlch(23.38, 24.59, 159.21°)
OKLaboklab(33.15% -0.0627 0.0222)
OKLCHoklch(33.15% 0.066 160.5)
XYZxyz(2.4027, 3.9118, 2.8185)
Luminance0.0391 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C402A #400C22
analogous
#0C4010 #0C402A #0C3C40
triadic
#0C402A #2A0C40 #402A0C
tetradic
#0C402A #100C40 #400C22 #3C400C
square
#0C402A #100C40 #400C22 #3C400C
split-complementary
#0C402A #400C3C #40100C
monochromatic
#051A11 #051A11 #0C402A #16744C #1FA76E

Accessibility & contrast

On white

11.78
#0C402A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#0C402A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C402A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C402A#FFFFFF#000000##FFFFFF
##0C402A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3B29
Deuteranopia (green-blind)
#38362B
Tritanopia (blue-blind)
#00403A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c402a;
/* rgb */ color: rgb(12, 64, 42);
/* oklch */ color: oklch(33.1% 0.066 160.5);
Tailwind
colors: {
  custom: {
    50: '#547563',
    500: '#0c402a',
    950: '#000000',
  },
}
SCSS
$custom: #0c402a;
$custom-light: #547563;
$custom-dark: #000000;
JSON
{
  "hex": "#0c402a",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 42
  },
  "hsl": {
    "h": 154.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33148,
    "c": 0.06647,
    "h": 160.5
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#0C402A
secondary
#7C2C4E
accent
#3D86EB
background
#F5F7F5
surface
#E9EDEA
border
#C5C8C6
text
#030805
muted
#787B79

Preview Lab

Preview with #0C402A

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

Preview Lab → · Contrast checker → · Palette generator →

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