#04162B#04162B

#04162B is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 19.8% C 0.049 H 252.9°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#04162B
RGBrgb(4, 22, 43)
HSLhsl(212, 83%, 9%)
HSVhsv(212, 91%, 17%)
CMYKcmyk(90.7%, 48.8%, 0%, 83.1%)
CIE-LABlab(6.99, 1.53, -16.39)
CIE-LCHlch(6.99, 16.46, 275.32°)
OKLaboklab(19.81% -0.0144 -0.047)
OKLCHoklch(19.81% 0.049 252.9)
XYZxyz(0.7729, 0.7740, 2.3937)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04162B #2B1904
analogous
#042A2B #04162B #06042B
triadic
#04162B #2B0416 #162B04
tetradic
#04162B #2B042A #2B1904 #042B06
square
#04162B #2B042A #2B1904 #042B06
split-complementary
#04162B #2B0604 #2A2B04
monochromatic
#030E1C #030E1C #04162B #093363 #0E4F9B

Accessibility & contrast

On white

18.18
#04162B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04162B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04162B
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04162B#FFFFFF#000000##FFFFFF
##04162B1.0018.181.1518.18
#FFFFFF18.181.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C172C
Deuteranopia (green-blind)
#06142B
Tritanopia (blue-blind)
#001B1E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04162b;
/* rgb */ color: rgb(4, 22, 43);
/* oklch */ color: oklch(19.8% 0.049 252.9);
Tailwind
colors: {
  custom: {
    50: '#4a5264',
    500: '#04162b',
    950: '#000000',
  },
}
SCSS
$custom: #04162b;
$custom-light: #4a5264;
$custom-dark: #000000;
JSON
{
  "hex": "#04162b",
  "rgb": {
    "r": 4,
    "g": 22,
    "b": 43
  },
  "hsl": {
    "h": 212.308,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19805,
    "c": 0.04918,
    "h": 252.9
  },
  "luminance": 0.00774
}

Semantic roles & 50–950 ramp

primary
#04162B
secondary
#6E491D
accent
#9C2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #04162B

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

Preview Lab → · Contrast checker → · Palette generator →

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