#04271F#04271F

#04271F is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.5% C 0.043 H 174.2°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#04271F
RGBrgb(4, 39, 31)
HSLhsl(166, 81%, 8%)
HSVhsv(166, 90%, 15%)
CMYKcmyk(89.7%, 0%, 20.5%, 84.7%)
CIE-LABlab(13.08, -14.96, 1.71)
CIE-LCHlch(13.08, 15.06, 173.49°)
OKLaboklab(24.54% -0.0423 0.0043)
OKLCHoklch(24.54% 0.043 174.2)
XYZxyz(1.0228, 1.5757, 1.5463)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04271F #27040C
analogous
#04270D #04271F #041D27
triadic
#04271F #1F0427 #271F04
tetradic
#04271F #0D0427 #27040C #1D2704
square
#04271F #0D0427 #27040C #1D2704
split-complementary
#04271F #27041D #270D04
monochromatic
#031C16 #031C16 #04271F #0A5F4B #0F9677

Accessibility & contrast

On white

15.97
#04271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#04271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04271F
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04271F#FFFFFF#000000##FFFFFF
##04271F1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241F
Deuteranopia (green-blind)
#202020
Tritanopia (blue-blind)
#002825
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #04271f;
/* rgb */ color: rgb(4, 39, 31);
/* oklch */ color: oklch(24.5% 0.043 174.2);
Tailwind
colors: {
  custom: {
    50: '#4a615a',
    500: '#04271f',
    950: '#000000',
  },
}
SCSS
$custom: #04271f;
$custom-light: #4a615a;
$custom-dark: #000000;
JSON
{
  "hex": "#04271f",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 166.286,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24535,
    "c": 0.04255,
    "h": 174.2
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#04271F
secondary
#6A1D2F
accent
#305EF8
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010503
muted
#777978

Preview Lab

Preview with #04271F

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

Preview Lab → · Contrast checker → · Palette generator →

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