#04182B#04182B

#04182B is a very dark, muted cyan. Relative luminance 0.009; OKLCH L 20.4% C 0.047 H 248.9°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#04182B
RGBrgb(4, 24, 43)
HSLhsl(209, 83%, 9%)
HSVhsv(209, 91%, 17%)
CMYKcmyk(90.7%, 44.2%, 0%, 83.1%)
CIE-LABlab(7.71, 0.06, -15.25)
CIE-LCHlch(7.71, 15.25, 270.23°)
OKLaboklab(20.4% -0.0168 -0.0434)
OKLCHoklch(20.4% 0.047 248.9)
XYZxyz(0.8126, 0.8534, 2.4069)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04182B #2B1704
analogous
#042B2B #04182B #04042B
triadic
#04182B #2B0418 #182B04
tetradic
#04182B #2B042B #2B1704 #042B04
square
#04182B #2B042B #2B1704 #042B04
split-complementary
#04182B #2B0404 #2B2B04
monochromatic
#03101C #03101C #04182B #093763 #0E579B

Accessibility & contrast

On white

17.94
#04182B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04182B
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04182B#FFFFFF#000000##FFFFFF
##04182B1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192C
Deuteranopia (green-blind)
#09152B
Tritanopia (blue-blind)
#001D1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04182b;
/* rgb */ color: rgb(4, 24, 43);
/* oklch */ color: oklch(20.4% 0.047 248.9);
Tailwind
colors: {
  custom: {
    50: '#4a5464',
    500: '#04182b',
    950: '#000000',
  },
}
SCSS
$custom: #04182b;
$custom-light: #4a5464;
$custom-dark: #000000;
JSON
{
  "hex": "#04182b",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 43
  },
  "hsl": {
    "h": 209.231,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.204,
    "c": 0.04656,
    "h": 248.9
  },
  "luminance": 0.00853
}

Semantic roles & 50–950 ramp

primary
#04182B
secondary
#6E441D
accent
#912EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #04182B

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

Preview Lab → · Contrast checker → · Palette generator →

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