#04182E#04182E

#04182E is a very dark, muted cyan. Relative luminance 0.009; OKLCH L 20.6% C 0.051 H 252.1°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#04182E
RGBrgb(4, 24, 46)
HSLhsl(211, 84%, 10%)
HSVhsv(211, 91%, 18%)
CMYKcmyk(91.3%, 47.8%, 0%, 82%)
CIE-LABlab(7.91, 1.50, -17.14)
CIE-LCHlch(7.91, 17.21, 275.00°)
OKLaboklab(20.63% -0.0158 -0.0489)
OKLCHoklch(20.63% 0.051 252.1)
XYZxyz(0.8697, 0.8762, 2.7075)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04182E #2E1A04
analogous
#042D2E #04182E #05042E
triadic
#04182E #2E0418 #182E04
tetradic
#04182E #2E042D #2E1A04 #042E05
square
#04182E #2E042D #2E1A04 #042E05
split-complementary
#04182E #2E0504 #2D2E04
monochromatic
#020F1C #020F1C #04182E #093566 #0E539F

Accessibility & contrast

On white

17.87
#04182E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04182E
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04182E#FFFFFF#000000##FFFFFF
##04182E1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A2F
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#001D20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04182e;
/* rgb */ color: rgb(4, 24, 46);
/* oklch */ color: oklch(20.6% 0.051 252.1);
Tailwind
colors: {
  custom: {
    50: '#4b5467',
    500: '#04182e',
    950: '#000000',
  },
}
SCSS
$custom: #04182e;
$custom-light: #4b5467;
$custom-dark: #000000;
JSON
{
  "hex": "#04182e",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 46
  },
  "hsl": {
    "h": 211.429,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20632,
    "c": 0.05143,
    "h": 252.1
  },
  "luminance": 0.00876
}

Semantic roles & 50–950 ramp

primary
#04182E
secondary
#71491D
accent
#992EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #04182E

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

Preview Lab → · Contrast checker → · Palette generator →

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