#042222#042222

#042222 is a very dark, muted teal. Relative luminance 0.013; OKLCH L 23.0% C 0.035 H 195.0°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#042222
RGBrgb(4, 34, 34)
HSLhsl(180, 79%, 7%)
HSVhsv(180, 88%, 13%)
CMYKcmyk(88.2%, 0%, 0%, 86.7%)
CIE-LABlab(11.17, -10.92, -3.27)
CIE-LCHlch(11.17, 11.40, 196.65°)
OKLaboklab(23.02% -0.0339 -0.0091)
OKLCHoklch(23.02% 0.035 195)
XYZxyz(0.9107, 1.2853, 1.7131)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042222 #220404
analogous
#042213 #042222 #041322
triadic
#042222 #220422 #222204
tetradic
#042222 #130422 #220404 #132204
square
#042222 #130422 #220404 #132204
split-complementary
#042222 #220413 #221304
monochromatic
#031B1B #031B1B #042222 #0A5959 #119090

Accessibility & contrast

On white

16.71
#042222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#042222 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042222
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042222#FFFFFF#000000##FFFFFF
##0422221.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2022
Deuteranopia (green-blind)
#1A1C22
Tritanopia (blue-blind)
#002322
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #042222;
/* rgb */ color: rgb(4, 34, 34);
/* oklch */ color: oklch(23.0% 0.035 195.0);
Tailwind
colors: {
  custom: {
    50: '#495d5c',
    500: '#042222',
    950: '#000000',
  },
}
SCSS
$custom: #042222;
$custom-light: #495d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#042222",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 34
  },
  "hsl": {
    "h": 180,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.23015,
    "c": 0.03511,
    "h": 195
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#042222
secondary
#651D1D
accent
#3232F5
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010404
muted
#777979

Preview Lab

Preview with #042222

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

Preview Lab → · Contrast checker → · Palette generator →

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