#04271B#04271B

#04271B is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.4% C 0.046 H 166.0°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#04271B
RGBrgb(4, 39, 27)
HSLhsl(159, 81%, 8%)
HSVhsv(159, 90%, 15%)
CMYKcmyk(89.7%, 0%, 30.8%, 84.7%)
CIE-LABlab(12.96, -16.25, 4.39)
CIE-LCHlch(12.96, 16.83, 164.89°)
OKLaboklab(24.39% -0.0448 0.0112)
OKLCHoklch(24.39% 0.046 166)
XYZxyz(0.9733, 1.5559, 1.2857)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04271B #270410
analogous
#042709 #04271B #042127
triadic
#04271B #1B0427 #271B04
tetradic
#04271B #090427 #270410 #212704
square
#04271B #090427 #270410 #212704
split-complementary
#04271B #270421 #270904
monochromatic
#031C13 #031C13 #04271B #0A5F41 #0F9668

Accessibility & contrast

On white

16.02
#04271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#04271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04271B
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04271B#FFFFFF#000000##FFFFFF
##04271B1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26231A
Deuteranopia (green-blind)
#21201C
Tritanopia (blue-blind)
#002724
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #04271b;
/* rgb */ color: rgb(4, 39, 27);
/* oklch */ color: oklch(24.4% 0.046 166.0);
Tailwind
colors: {
  custom: {
    50: '#496157',
    500: '#04271b',
    950: '#000000',
  },
}
SCSS
$custom: #04271b;
$custom-light: #496157;
$custom-dark: #000000;
JSON
{
  "hex": "#04271b",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 159.429,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24394,
    "c": 0.04619,
    "h": 166
  },
  "luminance": 0.01556
}

Semantic roles & 50–950 ramp

primary
#04271B
secondary
#6A1D37
accent
#3075F8
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #04271B

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

Preview Lab → · Contrast checker → · Palette generator →

#04271B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva