#04163F#04163F

#04163F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.6% C 0.082 H 262.5°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#04163F
RGBrgb(4, 22, 63)
HSLhsl(222, 88%, 13%)
HSVhsv(222, 94%, 25%)
CMYKcmyk(93.7%, 65.1%, 0%, 75.3%)
CIE-LABlab(8.64, 11.31, -28.27)
CIE-LCHlch(8.64, 30.45, 291.79°)
OKLaboklab(21.64% -0.0108 -0.0817)
OKLCHoklch(21.64% 0.082 262.5)
XYZxyz(1.2339, 0.9584, 4.8216)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04163F #3F2D04
analogous
#04333F #04163F #0F043F
triadic
#04163F #3F0416 #163F04
tetradic
#04163F #3F0433 #3F2D04 #043F0F
square
#04163F #3F0433 #3F2D04 #043F0F
split-complementary
#04163F #3F0F04 #333F04
monochromatic
#020A1D #020A1D #04163F #082A79 #0B3EB2

Accessibility & contrast

On white

17.62
#04163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#04163F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04163F
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04163F#FFFFFF#000000##FFFFFF
##04163F1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #04163f;
/* rgb */ color: rgb(4, 22, 63);
/* oklch */ color: oklch(21.6% 0.082 262.5);
Tailwind
colors: {
  custom: {
    50: '#505274',
    500: '#04163f',
    950: '#000000',
  },
}
SCSS
$custom: #04163f;
$custom-light: #505274;
$custom-dark: #000000;
JSON
{
  "hex": "#04163f",
  "rgb": {
    "r": 4,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 221.695,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21643,
    "c": 0.08244,
    "h": 262.5
  },
  "luminance": 0.00959
}

Semantic roles & 50–950 ramp

primary
#04163F
secondary
#80621E
accent
#BD2AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #04163F

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

Preview Lab → · Contrast checker → · Palette generator →

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