#04182F#04182F

#04182F is a very dark, muted cyan. Relative luminance 0.009; OKLCH L 20.7% C 0.053 H 253.0°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#04182F
RGBrgb(4, 24, 47)
HSLhsl(212, 84%, 10%)
HSVhsv(212, 91%, 18%)
CMYKcmyk(91.5%, 48.9%, 0%, 81.6%)
CIE-LABlab(7.99, 1.98, -17.76)
CIE-LCHlch(7.99, 17.87, 276.36°)
OKLaboklab(20.71% -0.0155 -0.0508)
OKLCHoklch(20.71% 0.053 253)
XYZxyz(0.8896, 0.8842, 2.8126)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04182F #2F1B04
analogous
#042E2F #04182F #05042F
triadic
#04182F #2F0418 #182F04
tetradic
#04182F #2F042E #2F1B04 #042F05
square
#04182F #2F042E #2F1B04 #042F05
split-complementary
#04182F #2F0504 #2E2F04
monochromatic
#020E1C #020E1C #04182F #093567 #0E52A0

Accessibility & contrast

On white

17.85
#04182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#04182F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04182F
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04182F#FFFFFF#000000##FFFFFF
##04182F1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#06162F
Tritanopia (blue-blind)
#001D21
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04182f;
/* rgb */ color: rgb(4, 24, 47);
/* oklch */ color: oklch(20.7% 0.053 253.0);
Tailwind
colors: {
  custom: {
    50: '#4b5467',
    500: '#04182f',
    950: '#000000',
  },
}
SCSS
$custom: #04182f;
$custom-light: #4b5467;
$custom-dark: #000000;
JSON
{
  "hex": "#04182f",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 212.093,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.20712,
    "c": 0.05308,
    "h": 253
  },
  "luminance": 0.00884
}

Semantic roles & 50–950 ramp

primary
#04182F
secondary
#724A1D
accent
#9B2DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04182F

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

Preview Lab → · Contrast checker → · Palette generator →

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