#0C402C#0C402C

#0C402C is a dark, moderate teal. Relative luminance 0.039; OKLCH L 33.2% C 0.064 H 162.8°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#0C402C
RGBrgb(12, 64, 44)
HSLhsl(157, 68%, 15%)
HSVhsv(157, 81%, 25%)
CMYKcmyk(81.2%, 0%, 31.2%, 74.9%)
CIE-LABlab(23.43, -22.46, 7.49)
CIE-LCHlch(23.43, 23.67, 161.55°)
OKLaboklab(33.21% -0.0615 0.0191)
OKLCHoklch(33.21% 0.064 162.8)
XYZxyz(2.4394, 3.9265, 3.0117)
Luminance0.0393 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C402C #400C20
analogous
#0C4012 #0C402C #0C3A40
triadic
#0C402C #2C0C40 #402C0C
tetradic
#0C402C #120C40 #400C20 #3A400C
square
#0C402C #120C40 #400C20 #3A400C
split-complementary
#0C402C #400C3A #40120C
monochromatic
#051A12 #051A12 #0C402C #16744F #1FA773

Accessibility & contrast

On white

11.76
#0C402C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#0C402C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C402C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C402C#FFFFFF#000000##FFFFFF
##0C402C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c402c;
/* rgb */ color: rgb(12, 64, 44);
/* oklch */ color: oklch(33.2% 0.064 162.8);
Tailwind
colors: {
  custom: {
    50: '#547565',
    500: '#0c402c',
    950: '#000000',
  },
}
SCSS
$custom: #0c402c;
$custom-light: #547565;
$custom-dark: #000000;
JSON
{
  "hex": "#0c402c",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 44
  },
  "hsl": {
    "h": 156.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33205,
    "c": 0.06441,
    "h": 162.8
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#0C402C
secondary
#7C2C4B
accent
#3D80EB
background
#F5F7F6
surface
#E9EDEB
border
#C5C8C6
text
#030805
muted
#787B7A

Preview Lab

Preview with #0C402C

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

Preview Lab → · Contrast checker → · Palette generator →

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