#0C402F#0C402F

#0C402F is a dark, moderate teal. Relative luminance 0.040; OKLCH L 33.3% C 0.061 H 166.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#0C402F
RGBrgb(12, 64, 47)
HSLhsl(160, 68%, 15%)
HSVhsv(160, 81%, 25%)
CMYKcmyk(81.2%, 0%, 26.6%, 74.9%)
CIE-LABlab(23.51, -21.63, 5.63)
CIE-LCHlch(23.51, 22.35, 165.40°)
OKLaboklab(33.3% -0.0598 0.0144)
OKLCHoklch(33.3% 0.062 166.5)
XYZxyz(2.4978, 3.9499, 3.3195)
Luminance0.0395 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C402F #400C1D
analogous
#0C4015 #0C402F #0C3740
triadic
#0C402F #2F0C40 #402F0C
tetradic
#0C402F #150C40 #400C1D #37400C
square
#0C402F #150C40 #400C1D #37400C
split-complementary
#0C402F #400C37 #40150C
monochromatic
#051A13 #051A13 #0C402F #167455 #1FA77B

Accessibility & contrast

On white

11.73
#0C402F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C402F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C402F#FFFFFF#000000##FFFFFF
##0C402F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3B2E
Deuteranopia (green-blind)
#383630
Tritanopia (blue-blind)
#00403B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c402f;
/* rgb */ color: rgb(12, 64, 47);
/* oklch */ color: oklch(33.3% 0.061 166.5);
Tailwind
colors: {
  custom: {
    50: '#547567',
    500: '#0c402f',
    950: '#000000',
  },
}
SCSS
$custom: #0c402f;
$custom-light: #547567;
$custom-dark: #000000;
JSON
{
  "hex": "#0c402f",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 47
  },
  "hsl": {
    "h": 160.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33295,
    "c": 0.0615,
    "h": 166.5
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#0C402F
secondary
#7C2C46
accent
#3D76EB
background
#F5F7F6
surface
#E9EDEB
border
#C5C8C6
text
#030806
muted
#787B7A

Preview Lab

Preview with #0C402F

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

Preview Lab → · Contrast checker → · Palette generator →

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