#040C08#040C08

#040C08 is a very dark, near-neutral teal. Relative luminance 0.003; OKLCH L 14.3% C 0.017 H 164.9°. Best body text is #FFFFFF at 19.79:1 contrast (WCAG AA passes).

Color values

HEX#040C08
RGBrgb(4, 12, 8)
HSLhsl(150, 50%, 3%)
HSVhsv(150, 67%, 5%)
CMYKcmyk(66.7%, 0%, 33.3%, 95.3%)
CIE-LABlab(2.77, -2.69, 0.81)
CIE-LCHlch(2.77, 2.81, 163.26°)
OKLaboklab(14.31% -0.0166 0.0045)
OKLCHoklch(14.31% 0.017 164.9)
XYZxyz(0.2254, 0.3063, 0.2769)
Luminance0.0031 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C08 #0C0408
analogous
#040C04 #040C08 #040C0C
triadic
#040C08 #08040C #0C0804
tetradic
#040C08 #04040C #0C0408 #0C0C04
square
#040C08 #04040C #0C0408 #0C0C04
split-complementary
#040C08 #0C040C #0C0404
monochromatic
#08170F #08170F #08170F #133A27 #236845

Accessibility & contrast

On white

19.79
#040C08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040C08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C08
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C08#FFFFFF#000000##FFFFFF
##040C081.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0B08
Deuteranopia (green-blind)
#0A0A08
Tritanopia (blue-blind)
#030C0B
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040c08;
/* rgb */ color: rgb(4, 12, 8);
/* oklch */ color: oklch(14.3% 0.017 164.9);
Tailwind
colors: {
  custom: {
    50: '#484c4a',
    500: '#040c08',
    950: '#000000',
  },
}
SCSS
$custom: #040c08;
$custom-light: #484c4a;
$custom-dark: #000000;
JSON
{
  "hex": "#040c08",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 8
  },
  "hsl": {
    "h": 150,
    "s": 50,
    "l": 3.137
  },
  "oklch": {
    "l": 0.14309,
    "c": 0.01724,
    "h": 164.9
  },
  "luminance": 0.00306
}

Semantic roles & 50–950 ramp

primary
#040C08
secondary
#492336
accent
#4E94DA
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #040C08

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

Preview Lab → · Contrast checker → · Palette generator →

#040C08 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva