#04182A#04182A

#04182A is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.3% C 0.045 H 247.6°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#04182A
RGBrgb(4, 24, 42)
HSLhsl(208, 83%, 9%)
HSVhsv(208, 90%, 16%)
CMYKcmyk(90.5%, 42.9%, 0%, 83.5%)
CIE-LABlab(7.64, -0.40, -14.61)
CIE-LCHlch(7.64, 14.62, 268.43°)
OKLaboklab(20.33% -0.0171 -0.0416)
OKLCHoklch(20.33% 0.045 247.6)
XYZxyz(0.7945, 0.8462, 2.3115)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04182A #2A1604
analogous
#042A29 #04182A #04052A
triadic
#04182A #2A0418 #182A04
tetradic
#04182A #29042A #2A1604 #052A04
square
#04182A #29042A #2A1604 #052A04
split-complementary
#04182A #2A0405 #2A2904
monochromatic
#03101C #03101C #04182A #093862 #0F589A

Accessibility & contrast

On white

17.96
#04182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#04182A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04182A
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04182A#FFFFFF#000000##FFFFFF
##04182A1.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192B
Deuteranopia (green-blind)
#0A152A
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04182a;
/* rgb */ color: rgb(4, 24, 42);
/* oklch */ color: oklch(20.3% 0.045 247.6);
Tailwind
colors: {
  custom: {
    50: '#495463',
    500: '#04182a',
    950: '#000000',
  },
}
SCSS
$custom: #04182a;
$custom-light: #495463;
$custom-dark: #000000;
JSON
{
  "hex": "#04182a",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 208.421,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20325,
    "c": 0.04496,
    "h": 247.6
  },
  "luminance": 0.00846
}

Semantic roles & 50–950 ramp

primary
#04182A
secondary
#6D431D
accent
#8F2FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #04182A

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

Preview Lab → · Contrast checker → · Palette generator →

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