#04181C#04181C

#04181C is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 19.4% C 0.028 H 212.0°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#04181C
RGBrgb(4, 24, 28)
HSLhsl(190, 75%, 6%)
HSVhsv(190, 86%, 11%)
CMYKcmyk(85.7%, 14.3%, 0%, 89%)
CIE-LABlab(6.89, -5.69, -5.22)
CIE-LCHlch(6.89, 7.72, 222.54°)
OKLaboklab(19.42% -0.0236 -0.0148)
OKLCHoklch(19.42% 0.028 212)
XYZxyz(0.5862, 0.7629, 1.2147)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04181C #1C0804
analogous
#041C14 #04181C #040C1C
triadic
#04181C #1C0418 #181C04
tetradic
#04181C #14041C #1C0804 #0C1C04
square
#04181C #14041C #1C0804 #0C1C04
split-complementary
#04181C #1C040C #1C1404
monochromatic
#04171B #04171B #04181C #0C4652 #137487

Accessibility & contrast

On white

18.22
#04181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04181C
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04181C#FFFFFF#000000##FFFFFF
##04181C1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15171C
Deuteranopia (green-blind)
#11141C
Tritanopia (blue-blind)
#001A19
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04181c;
/* rgb */ color: rgb(4, 24, 28);
/* oklch */ color: oklch(19.4% 0.028 212.0);
Tailwind
colors: {
  custom: {
    50: '#485458',
    500: '#04181c',
    950: '#000000',
  },
}
SCSS
$custom: #04181c;
$custom-light: #485458;
$custom-dark: #000000;
JSON
{
  "hex": "#04181c",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 190,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.19422,
    "c": 0.02784,
    "h": 212
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#04181C
secondary
#5E281D
accent
#5536F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000203
muted
#777878

Preview Lab

Preview with #04181C

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

Preview Lab → · Contrast checker → · Palette generator →

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