#0C402E#0C402E

#0C402E is a dark, moderate teal. Relative luminance 0.039; OKLCH L 33.3% C 0.062 H 165.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#0C402E
RGBrgb(12, 64, 46)
HSLhsl(159, 68%, 15%)
HSVhsv(159, 81%, 25%)
CMYKcmyk(81.2%, 0%, 28.1%, 74.9%)
CIE-LABlab(23.48, -21.91, 6.25)
CIE-LCHlch(23.48, 22.78, 164.07°)
OKLaboklab(33.26% -0.0604 0.016)
OKLCHoklch(33.26% 0.062 165.2)
XYZxyz(2.4779, 3.9419, 3.2145)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C402E #400C1E
analogous
#0C4014 #0C402E #0C3840
triadic
#0C402E #2E0C40 #402E0C
tetradic
#0C402E #140C40 #400C1E #38400C
square
#0C402E #140C40 #400C1E #38400C
split-complementary
#0C402E #400C38 #40140C
monochromatic
#051A13 #051A13 #0C402E #167453 #1FA778

Accessibility & contrast

On white

11.74
#0C402E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C402E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C402E#FFFFFF#000000##FFFFFF
##0C402E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c402e;
/* rgb */ color: rgb(12, 64, 46);
/* oklch */ color: oklch(33.3% 0.062 165.2);
Tailwind
colors: {
  custom: {
    50: '#547566',
    500: '#0c402e',
    950: '#000000',
  },
}
SCSS
$custom: #0c402e;
$custom-light: #547566;
$custom-dark: #000000;
JSON
{
  "hex": "#0c402e",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 46
  },
  "hsl": {
    "h": 159.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33264,
    "c": 0.06245,
    "h": 165.2
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#0C402E
secondary
#7C2C48
accent
#3D79EB
background
#F5F7F6
surface
#E9EDEB
border
#C5C8C6
text
#030806
muted
#787B7A

Preview Lab

Preview with #0C402E

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

Preview Lab → · Contrast checker → · Palette generator →

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