#04221C#04221C

#04221C is a very dark, muted teal. Relative luminance 0.013; OKLCH L 22.8% C 0.038 H 177.1°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#04221C
RGBrgb(4, 34, 28)
HSLhsl(168, 79%, 7%)
HSVhsv(168, 88%, 13%)
CMYKcmyk(88.2%, 0%, 17.6%, 86.7%)
CIE-LABlab(10.95, -13.12, 0.79)
CIE-LCHlch(10.95, 13.14, 176.55°)
OKLaboklab(22.76% -0.0375 0.0019)
OKLCHoklch(22.76% 0.038 177.1)
XYZxyz(0.8316, 1.2536, 1.2965)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04221C #22040A
analogous
#04220D #04221C #041922
triadic
#04221C #1C0422 #221C04
tetradic
#04221C #0D0422 #22040A #192204
square
#04221C #0D0422 #22040A #192204
split-complementary
#04221C #220419 #220D04
monochromatic
#031B17 #031B17 #04221C #0A5949 #119076

Accessibility & contrast

On white

16.79
#04221C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#04221C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04221C
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04221C#FFFFFF#000000##FFFFFF
##04221C1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201F1C
Deuteranopia (green-blind)
#1C1C1C
Tritanopia (blue-blind)
#002320
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #04221c;
/* rgb */ color: rgb(4, 34, 28);
/* oklch */ color: oklch(22.8% 0.038 177.1);
Tailwind
colors: {
  custom: {
    50: '#485d57',
    500: '#04221c',
    950: '#000000',
  },
}
SCSS
$custom: #04221c;
$custom-light: #485d57;
$custom-dark: #000000;
JSON
{
  "hex": "#04221c",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 28
  },
  "hsl": {
    "h": 168,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.22757,
    "c": 0.0376,
    "h": 177.1
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#04221C
secondary
#651D2B
accent
#3259F5
background
#F4F5F5
surface
#E6E9E9
border
#C2C5C5
text
#010403
muted
#777978

Preview Lab

Preview with #04221C

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

Preview Lab → · Contrast checker → · Palette generator →

#04221C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva