#04201F#04201F

#04201F is a very dark, muted teal. Relative luminance 0.012; OKLCH L 22.2% C 0.034 H 191.7°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#04201F
RGBrgb(4, 32, 31)
HSLhsl(178, 78%, 7%)
HSVhsv(178, 88%, 13%)
CMYKcmyk(87.5%, 0%, 3.1%, 87.5%)
CIE-LABlab(10.24, -10.81, -2.45)
CIE-LCHlch(10.24, 11.08, 192.77°)
OKLaboklab(22.22% -0.033 -0.0068)
OKLCHoklch(22.22% 0.034 191.7)
XYZxyz(0.8138, 1.1577, 1.4766)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04201F #200405
analogous
#042011 #04201F #041320
triadic
#04201F #1F0420 #201F04
tetradic
#04201F #110420 #200405 #132004
square
#04201F #110420 #200405 #132004
split-complementary
#04201F #200413 #201104
monochromatic
#031B1A #031B1A #04201F #0B5654 #128D88

Accessibility & contrast

On white

17.05
#04201F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#04201F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04201F
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04201F#FFFFFF#000000##FFFFFF
##04201F1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1E1F
Deuteranopia (green-blind)
#191B1F
Tritanopia (blue-blind)
#002120
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #04201f;
/* rgb */ color: rgb(4, 32, 31);
/* oklch */ color: oklch(22.2% 0.034 191.7);
Tailwind
colors: {
  custom: {
    50: '#485b5a',
    500: '#04201f',
    950: '#000000',
  },
}
SCSS
$custom: #04201f;
$custom-light: #485b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#04201f",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 31
  },
  "hsl": {
    "h": 177.857,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.22219,
    "c": 0.0337,
    "h": 191.7
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#04201F
secondary
#631D20
accent
#343AF4
background
#F4F5F5
surface
#E6E9E9
border
#C2C5C5
text
#010403
muted
#777978

Preview Lab

Preview with #04201F

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

Preview Lab → · Contrast checker → · Palette generator →

#04201F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva