#04271A#04271A

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

Color values

HEX#04271A
RGBrgb(4, 39, 26)
HSLhsl(158, 81%, 8%)
HSVhsv(158, 90%, 15%)
CMYKcmyk(89.7%, 0%, 33.3%, 84.7%)
CIE-LABlab(12.93, -16.55, 5.06)
CIE-LCHlch(12.93, 17.30, 163.01°)
OKLaboklab(24.36% -0.0454 0.0129)
OKLCHoklch(24.36% 0.047 164.2)
XYZxyz(0.9619, 1.5513, 1.2258)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04271A #270411
analogous
#042708 #04271A #042227
triadic
#04271A #1A0427 #271A04
tetradic
#04271A #080427 #270411 #222704
square
#04271A #080427 #270411 #222704
split-complementary
#04271A #270422 #270804
monochromatic
#031C13 #031C13 #04271A #0A5F3F #0F9664

Accessibility & contrast

On white

16.03
#04271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04271A
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04271A#FFFFFF#000000##FFFFFF
##04271A1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262319
Deuteranopia (green-blind)
#21201B
Tritanopia (blue-blind)
#002723
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #04271a;
/* rgb */ color: rgb(4, 39, 26);
/* oklch */ color: oklch(24.4% 0.047 164.2);
Tailwind
colors: {
  custom: {
    50: '#496156',
    500: '#04271a',
    950: '#000000',
  },
}
SCSS
$custom: #04271a;
$custom-light: #496156;
$custom-dark: #000000;
JSON
{
  "hex": "#04271a",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 157.714,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24362,
    "c": 0.04724,
    "h": 164.2
  },
  "luminance": 0.01551
}

Semantic roles & 50–950 ramp

primary
#04271A
secondary
#6A1D3A
accent
#307AF8
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #04271A

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

Preview Lab → · Contrast checker → · Palette generator →

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