#042012#042012

#042012 is a very dark, muted teal. Relative luminance 0.011; OKLCH L 21.7% C 0.044 H 158.3°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#042012
RGBrgb(4, 32, 18)
HSLhsl(150, 78%, 7%)
HSVhsv(150, 88%, 13%)
CMYKcmyk(87.5%, 0%, 43.8%, 87.5%)
CIE-LABlab(9.82, -14.63, 6.21)
CIE-LCHlch(9.82, 15.90, 157.01°)
OKLaboklab(21.73% -0.0411 0.0164)
OKLCHoklch(21.73% 0.044 158.3)
XYZxyz(0.6757, 1.1024, 0.7493)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042012 #200412
analogous
#042004 #042012 #042020
triadic
#042012 #120420 #201204
tetradic
#042012 #040420 #200412 #202004
square
#042012 #040420 #200412 #202004
split-complementary
#042012 #200420 #200404
monochromatic
#031B0F #031B0F #042012 #0B5631 #128D4F

Accessibility & contrast

On white

17.20
#042012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#042012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042012
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042012#FFFFFF#000000##FFFFFF
##0420121.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201D11
Deuteranopia (green-blind)
#1C1A13
Tritanopia (blue-blind)
#00201C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #042012;
/* rgb */ color: rgb(4, 32, 18);
/* oklch */ color: oklch(21.7% 0.044 158.3);
Tailwind
colors: {
  custom: {
    50: '#485b4f',
    500: '#042012',
    950: '#000000',
  },
}
SCSS
$custom: #042012;
$custom-light: #485b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#042012",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 18
  },
  "hsl": {
    "h": 150,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.21733,
    "c": 0.04427,
    "h": 158.3
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#042012
secondary
#631D40
accent
#3494F4
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000402
muted
#777978

Preview Lab

Preview with #042012

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

Preview Lab → · Contrast checker → · Palette generator →

#042012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva