#04271C#04271C

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

Color values

HEX#04271C
RGBrgb(4, 39, 28)
HSLhsl(161, 81%, 8%)
HSVhsv(161, 90%, 15%)
CMYKcmyk(89.7%, 0%, 28.2%, 84.7%)
CIE-LABlab(12.99, -15.93, 3.72)
CIE-LCHlch(12.99, 16.36, 166.87°)
OKLaboklab(24.43% -0.0442 0.0095)
OKLCHoklch(24.43% 0.045 167.9)
XYZxyz(0.9851, 1.5606, 1.3477)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04271C #27040F
analogous
#04270A #04271C #042027
triadic
#04271C #1C0427 #271C04
tetradic
#04271C #0A0427 #27040F #202704
square
#04271C #0A0427 #27040F #202704
split-complementary
#04271C #270420 #270A04
monochromatic
#031C14 #031C14 #04271C #0A5F44 #0F966C

Accessibility & contrast

On white

16.00
#04271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04271C
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04271C#FFFFFF#000000##FFFFFF
##04271C1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241B
Deuteranopia (green-blind)
#21201D
Tritanopia (blue-blind)
#002724
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #04271c;
/* rgb */ color: rgb(4, 39, 28);
/* oklch */ color: oklch(24.4% 0.045 167.9);
Tailwind
colors: {
  custom: {
    50: '#496158',
    500: '#04271c',
    950: '#000000',
  },
}
SCSS
$custom: #04271c;
$custom-light: #496158;
$custom-dark: #000000;
JSON
{
  "hex": "#04271c",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 161.143,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24428,
    "c": 0.0452,
    "h": 167.9
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#04271C
secondary
#6A1D35
accent
#306FF8
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #04271C

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

Preview Lab → · Contrast checker → · Palette generator →

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